You are here

class BooleanStrategy in Zircon Profile 8

Same name in this branch
  1. 8 vendor/zendframework/zend-hydrator/src/Strategy/BooleanStrategy.php \Zend\Hydrator\Strategy\BooleanStrategy
  2. 8 vendor/zendframework/zend-stdlib/src/Hydrator/Strategy/BooleanStrategy.php \Zend\Stdlib\Hydrator\Strategy\BooleanStrategy
Same name and namespace in other branches
  1. 8.0 vendor/zendframework/zend-stdlib/src/Hydrator/Strategy/BooleanStrategy.php \Zend\Stdlib\Hydrator\Strategy\BooleanStrategy

This Strategy extracts and hydrates int and string values to Boolean values

Hierarchy

Expanded class hierarchy of BooleanStrategy

Deprecated

Use Zend\Hydrator\Strategy\BooleanStrategy from zendframework/zend-hydrator instead.

File

vendor/zendframework/zend-stdlib/src/Hydrator/Strategy/BooleanStrategy.php, line 19

Namespace

Zend\Stdlib\Hydrator\Strategy
View source
class BooleanStrategy extends BaseBooleanStrategy implements StrategyInterface {

}

Members

Namesort descending Modifiers Type Description Overrides
BooleanStrategy::$falseValue private property
BooleanStrategy::$trueValue private property
BooleanStrategy::extract public function Converts the given value so that it can be extracted by the hydrator. Overrides StrategyInterface::extract
BooleanStrategy::hydrate public function Converts the given value so that it can be hydrated by the hydrator. Overrides StrategyInterface::hydrate
BooleanStrategy::__construct public function