/** * Class constructor. * @param string $expectedType the values expected type * @throws \InvalidArgumentException if an argument is not valid. */ public function __construct($expectedType) { Assert::isString($expectedType); parent::__construct("ctype_" . $expectedType); }
/** * Class constructor. * @param string $expectedType the values expected type * @throws \InvalidArgumentException if an argument is not valid. */ public function __construct($expectedType) { Assert::isString($expectedType); parent::__construct("is_" . strtolower($expectedType)); }