public function __construct($object, $format = \DateTime::RFC3339) { parent::__construct($object, '\\DateTime', []); $this->format = $format; }