PHP Class eZ\Publish\Core\Base\Exceptions\InvalidArgumentType

Usage: throw new InvalidArgument( 'nodes', 'array' );
Inheritance: extends InvalidArgumentException
Show file Open project: ezsystems/ezpublish-kernel

Public Methods

Method Description
__construct ( string $argumentName, string $expectedType, mixed | null $value = null, Exception $previous = null ) Generates: "Argument '{$argumentName}' is invalid: expected value to be of type '{$expectedType}'[, got '{$value}']".

Method Details

__construct() public method

Generates: "Argument '{$argumentName}' is invalid: expected value to be of type '{$expectedType}'[, got '{$value}']".
public __construct ( string $argumentName, string $expectedType, mixed | null $value = null, Exception $previous = null )
$argumentName string
$expectedType string
$value mixed | null Optionally to output the type that was received
$previous Exception