phpCAS version 1.3.6

TypeMismatchException.php
Go to the documentation of this file.
1 <?php
2
40 class CAS_TypeMismatchException
41 extends CAS_InvalidArgumentException
42 {
54 public function __construct (
55 $argument, $argumentName, $type, $message = '', $code = 0
56 ) {
57 if (is_object($argument)) {
58 $foundType = get_class($argument).' object';
59 } else {
60 $foundType = gettype($argument);
61 }
62
63 parent::__construct(
64 'type mismatched for parameter '
65 . $argumentName . ' (should be \'' . $type .' \'), '
66 . $foundType . ' given. ' . $message, $code
67 );
68 }
69 }
70 ?>
CAS_TypeMismatchException
Definition: TypeMismatchException.php:40
CAS_InvalidArgumentException
Definition: InvalidArgumentException.php:40
CAS_TypeMismatchException\__construct
__construct( $argument, $argumentName, $type, $message='', $code=0)
Definition: TypeMismatchException.php:54