This Strategy extracts and hydrates int and string values to Boolean values
package | Zend\Stdlib\Hydrator\Strategy |
---|
__construct(int | string $trueValue, int | string $falseValue)
intstring
intstring
\Zend\Stdlib\Exception\InvalidArgumentException |
---|
extract(bool $value) : int | string
bool
The original value.
\Zend\Stdlib\Exception\InvalidArgumentException |
---|
int
string
Returns the value that should be extracted.hydrate(int | string $value) : bool
intstring
The original value.
\Zend\Stdlib\Exception\InvalidArgumentException |
---|
bool
Returns the value that should be hydrated.$falseValue : int | string
$trueValue : int | string