You are here

public function SerializableStrategy::__construct in Zircon Profile 8

Same name and namespace in other branches
  1. 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

SerializableStrategy

Namespace

Zend\Hydrator\Strategy

Code

public function __construct($serializer, $serializerOptions = null) {
  $this
    ->setSerializer($serializer);
  if ($serializerOptions) {
    $this
      ->setSerializerOptions($serializerOptions);
  }
}