/** * {@inheritdoc} */ public function setValue($value) : parent { if ($value instanceof TimeObject) { $value = $value->format(); } elseif (is_string($value) && $value) { $date = new TimeObject($value); $value = $date->format(); } return parent::setValue($value); }
/** * @param Time $time * * @return $this|self */ public function setTimeFromTime(Time $time) { return $this->setTimeFromTimeString($time->format()); }