Stub class for backwards compatibility.
Since PHP 7 adds "int" as a reserved keyword, we can no longer have a class
named that and retain PHP 7 compatibility. The original class has been
renamed to "ToInt", and this class is now an extension of it. It raises an
E_USER_DEPRECATED to warn users to migrate.
Methods
__construct()
__construct()
Invoke filter as a command
__invoke(mixed $value) : mixed
Inherited
Proxies to filter()
inherited_from |
\Zend\Filter\AbstractFilter::__invoke() |
inherited_from |
\Zend\Filter\ToInt::__invoke() |
Parameters
$value
mixed
Exceptions
Returns
mixed
Defined by Zend\Filter\FilterInterface
filter(string $value) : int | mixed
Inherited
Returns (int) $value
If the value provided is non-scalar, the value will remain unfiltered
inherited_from |
\Zend\Filter\ToInt::filter() |
Parameters
$value
string
Exceptions
Returns
int
mixed
Retrieve options representing object state
getOptions() : array
Inherited
inherited_from |
\Zend\Filter\AbstractFilter::getOptions() |
inherited_from |
\Zend\Filter\ToInt::getOptions() |
Returns
array
hasPcreUnicodeSupport()
hasPcreUnicodeSupport() : bool
Inherited
inherited_from |
\Zend\Filter\AbstractFilter::hasPcreUnicodeSupport() |
inherited_from |
\Zend\Filter\ToInt::hasPcreUnicodeSupport() |
Returns
bool
setOptions()
setOptions(array | \Traversable $options) : \Zend\Filter\self
Inherited
inherited_from |
\Zend\Filter\AbstractFilter::setOptions() |
inherited_from |
\Zend\Filter\ToInt::setOptions() |
Parameters
$options
array\Traversable
Exceptions
Returns
\Zend\Filter\self
isOptions()
isOptions(mixed $options) : bool
Inherited
inherited_from |
\Zend\Filter\AbstractFilter::isOptions() |
inherited_from |
\Zend\Filter\ToInt::isOptions() |
Parameters
$options
mixed
Returns
bool
Properties
Filter options
$options : array
Inherited
inherited_from |
\Zend\Filter\AbstractFilter::$$options |
inherited_from |
\Zend\Filter\ToInt::$$options |