Assert
Provides runtime assertions
Loading...
Searching...
No Matches
Wikimedia\Assert\ParameterTypeException Class Reference

Exception indicating that a parameter type assertion failed. More...

+ Inheritance diagram for Wikimedia\Assert\ParameterTypeException:
+ Collaboration diagram for Wikimedia\Assert\ParameterTypeException:

Public Member Functions

 __construct ( $parameterName, $parameterType)
 
 getParameterType ()
 
- Public Member Functions inherited from Wikimedia\Assert\ParameterAssertionException
 getParameterName ()
 

Detailed Description

Exception indicating that a parameter type assertion failed.

This generally means a disagreement between the caller and the implementation of a function.

Since
0.1.0

@license MIT

Author
Daniel Kinzler

Constructor & Destructor Documentation

◆ __construct()

Wikimedia\Assert\ParameterTypeException::__construct ( $parameterName,
$parameterType )
Parameters
string$parameterName
string$parameterType
Exceptions
ParameterTypeException

Reimplemented from Wikimedia\Assert\ParameterAssertionException.

Member Function Documentation

◆ getParameterType()

Wikimedia\Assert\ParameterTypeException::getParameterType ( )
Returns
string

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