src/Surfnet/StepupGateway/GatewayBundle/Exception/InvalidArgumentException.php 1 location
|
@@ 23-34 (lines=12) @@
|
20 |
|
|
21 |
|
use InvalidArgumentException as CoreInvalidArgumentException; |
22 |
|
|
23 |
|
class InvalidArgumentException extends CoreInvalidArgumentException |
24 |
|
{ |
25 |
|
public static function invalidType($expectedType, $parameter, $value) |
26 |
|
{ |
27 |
|
return new self(sprintf( |
28 |
|
'Invalid Argument, parameter "%s" should be of type "%s", "%s" given', |
29 |
|
$parameter, |
30 |
|
$expectedType, |
31 |
|
is_object($value) ? get_class($value) : gettype($value) |
32 |
|
)); |
33 |
|
} |
34 |
|
} |
35 |
|
|
src/Surfnet/StepupGateway/SamlStepupProviderBundle/Exception/InvalidArgumentException.php 1 location
|
@@ 23-36 (lines=14) @@
|
20 |
|
|
21 |
|
use InvalidArgumentException as CoreInvalidArgumentException; |
22 |
|
|
23 |
|
class InvalidArgumentException extends CoreInvalidArgumentException |
24 |
|
{ |
25 |
|
public static function invalidType($expectedType, $parameter, $value) |
26 |
|
{ |
27 |
|
return new self( |
28 |
|
sprintf( |
29 |
|
'Invalid Argument, parameter "%s" should be of type "%s", "%s" given', |
30 |
|
$parameter, |
31 |
|
$expectedType, |
32 |
|
is_object($value) ? get_class($value) : gettype($value) |
33 |
|
) |
34 |
|
); |
35 |
|
} |
36 |
|
} |
37 |
|
|
src/Surfnet/StepupGateway/U2fVerificationBundle/Exception/InvalidArgumentException.php 1 location
|
@@ 23-34 (lines=12) @@
|
20 |
|
|
21 |
|
use InvalidArgumentException as CoreInvalidArgumentException; |
22 |
|
|
23 |
|
class InvalidArgumentException extends CoreInvalidArgumentException |
24 |
|
{ |
25 |
|
public static function invalidType($expectedType, $parameter, $value) |
26 |
|
{ |
27 |
|
return new self(sprintf( |
28 |
|
'Invalid Argument, parameter "%s" should be of type "%s", "%s" given', |
29 |
|
$parameter, |
30 |
|
$expectedType, |
31 |
|
is_object($value) ? get_class($value) : gettype($value) |
32 |
|
)); |
33 |
|
} |
34 |
|
} |
35 |
|
|