public function __construct(Hydrator $hydrator, Inflector $inflector, $value = null, $dateClass = '\\DateTime') { $this->hydrator = $hydrator; $this->inflector = $inflector; $this->assignDateClass($dateClass); if ($value) { $this->setValue($value); } }