/** * @param array $array * @param null|HydratorInterface $hydrator * @param null|mixed $entityPrototype A prototype entity to use with the hydrator */ public function __construct(array $array = array(), HydratorInterface $hydrator = null, $entityPrototype = null) { parent::__construct($array); $this->hydrator = $hydrator; $this->entityPrototype = $entityPrototype ?: new stdClass(); }