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
boolThe original value.
\Zend\Stdlib\Exception\InvalidArgumentException |
|---|
intstringReturns the value that should be extracted.hydrate(int | string $value) : bool
intstringThe original value.
\Zend\Stdlib\Exception\InvalidArgumentException |
|---|
boolReturns the value that should be hydrated.$falseValue : int | string
$trueValue : int | string