Eloquent\Phony\Mock\Exception\InvalidTypeException::__construct PHP Метод

__construct() публичный Метод

Construct a new invalid type exception.
public __construct ( mixed $type, Exception $cause = null )
$type mixed The type.
$cause Exception The cause, if available.
    public function __construct($type, Exception $cause = null)
    {
        $this->type = $type;
        if (is_string($type)) {
            $message = sprintf('Undefined type %s.', var_export($type, true));
        } else {
            $message = sprintf('Unable to add type of type %s.', var_export(gettype($type), true));
        }
        parent::__construct($message, 0, $cause);
    }
InvalidTypeException