ILIAS  release_5-4 Revision v5.4.26-12-gabc799a52e6
SAML2\Exception\InvalidArgumentException Class Reference
+ Inheritance diagram for SAML2\Exception\InvalidArgumentException:
+ Collaboration diagram for SAML2\Exception\InvalidArgumentException:

Static Public Member Functions

static invalidType ($expected, $parameter)
 

Detailed Description

Definition at line 5 of file InvalidArgumentException.php.

Member Function Documentation

◆ invalidType()

static SAML2\Exception\InvalidArgumentException::invalidType (   $expected,
  $parameter 
)
static
Parameters
string$expecteddescription of expected type
mixed$parameterthe parameter that is not of the expected type.
Returns

Definition at line 13 of file InvalidArgumentException.php.

References $message.

Referenced by SAML2\Configuration\Destination\__construct(), SAML2\Certificate\Fingerprint\__construct(), SAML2\Configuration\PrivateKey\__construct(), SAML2\Certificate\KeyCollection\add(), SAML2\Certificate\FingerprintCollection\add(), SAML2\Assertion\Validation\Result\addError(), SAML2\Response\Validation\Result\addError(), SAML2\Certificate\Key\assertIsString(), SAML2\Certificate\PrivateKey\create(), SAML2\Utilities\File\getFileContents(), SAML2\Certificate\KeyLoader\loadCertificateData(), and SAML2\Certificate\FingerprintLoader\loadFingerprints().

14  {
15  $message = sprintf(
16  'Invalid Argument type: "%s" expected, "%s" given',
17  $expected,
18  is_object($parameter) ? get_class($parameter) : gettype($parameter)
19  );
20 
21  return new self($message);
22  }
catch(Exception $e) $message
+ Here is the caller graph for this function:

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