public function SerializableStrategy::__construct in Zircon Profile 8
Same name and namespace in other branches
- 8.0 vendor/zendframework/zend-hydrator/src/Strategy/SerializableStrategy.php \Zend\Hydrator\Strategy\SerializableStrategy::__construct()
Parameters
mixed $serializer string or SerializerAdapter:
mixed $serializerOptions:
File
- vendor/
zendframework/ zend-hydrator/ src/ Strategy/ SerializableStrategy.php, line 33
Class
Namespace
Zend\Hydrator\StrategyCode
public function __construct($serializer, $serializerOptions = null) {
$this
->setSerializer($serializer);
if ($serializerOptions) {
$this
->setSerializerOptions($serializerOptions);
}
}