DDDBL 2.0
 All Classes Namespaces Files Functions Variables
Public Member Functions | List of all members
DDDBL\UnexpectedParameterTypeException Class Reference
Inheritance diagram for DDDBL\UnexpectedParameterTypeException:

Public Member Functions

 __construct ($strExpected, $mixedValue)
 

Detailed Description

exception if the given parameter has an unexpected data-type

Definition at line 10 of file UnexpectedParameterTypeException.class.php.

Constructor & Destructor Documentation

DDDBL\UnexpectedParameterTypeException::__construct (   $strExpected,
  $mixedValue 
)
Parameters
$strExpected- the expected datatype
$mixedValue- the given parameter

determines the datatype of the given parameter and creates and stores the exception message

Definition at line 20 of file UnexpectedParameterTypeException.class.php.

20  {
21 
22  parent::__construct("value of type $strExpected expected, but got: " . gettype($mixedValue));
23 
24  }

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