ILIAS  release_5-3 Revision v5.3.23-19-g915713cf615
SAML2\Response\Validation\Result Class Reference

Simple Result object. More...

+ Collaboration diagram for SAML2\Response\Validation\Result:

Public Member Functions

 addError ($message)
 
 isValid ()
 
 getErrors ()
 

Private Attributes

 $errors = array()
 

Detailed Description

Simple Result object.

Definition at line 10 of file Result.php.

Member Function Documentation

◆ addError()

SAML2\Response\Validation\Result::addError (   $message)
Parameters
$message

Definition at line 20 of file Result.php.

References $message, and SAML2\Exception\InvalidArgumentException\invalidType().

Referenced by SAML2\Response\Validation\ConstraintValidator\IsSuccessful\validate(), and SAML2\Response\Validation\ConstraintValidator\DestinationMatches\validate().

21  {
22  if (!is_string($message)) {
24  }
25 
26  $this->errors[] = $message;
27  }
catch(Exception $e) $message
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ getErrors()

SAML2\Response\Validation\Result::getErrors ( )
Returns
array

Definition at line 40 of file Result.php.

References SAML2\Response\Validation\Result\$errors.

Referenced by SAML2\Response\Exception\PreconditionNotMetException\createFromValidationResult().

41  {
42  return $this->errors;
43  }
+ Here is the caller graph for this function:

◆ isValid()

SAML2\Response\Validation\Result::isValid ( )
Returns
bool

Definition at line 32 of file Result.php.

33  {
34  return empty($this->errors);
35  }

Field Documentation

◆ $errors

SAML2\Response\Validation\Result::$errors = array()
private

Definition at line 15 of file Result.php.

Referenced by SAML2\Response\Validation\Result\getErrors().


The documentation for this class was generated from the following file: