Class ToNull

Summary

Fully Qualified Name: Laminas\Filter\ToNull
Extends: AbstractFilter

Description

Methods

Name Description Defined By
__construct() Constructor ToNull
__invoke() Invoke filter as a command AbstractFilter
filter() Defined by Laminas\Filter\FilterInterface ToNull
getOptions() Retrieve options representing object state AbstractFilter
getType() Returns defined boolean types ToNull
hasPcreUnicodeSupport() AbstractFilter
setOptions() AbstractFilter
setType() Set boolean types ToNull

Method Details

__construct()

Constructor

Parameter Name Type Description
$typeOrOptions int|string|array|\Traversable|null

Returns:

__invoke()

Invoke filter as a command

Proxies to {@link filter()}

Parameter Name Type Description
$value mixed

Returns: mixed

filter()

Defined by Laminas\Filter\FilterInterface

Returns null representation of $value, if value is empty and matches types that should be considered null.

Parameter Name Type Description
$value null|array|bool|float|int|string

Returns: null|mixed

getOptions()

Retrieve options representing object state

Returns: array

getType()

Returns defined boolean types

Returns: int

hasPcreUnicodeSupport()

Returns: bool

setOptions()

Parameter Name Type Description
$options array|\Traversable

Returns: self

setType()

Set boolean types

Parameter Name Type Description
$type int|string|array

Returns: self

Top