src/Element/Time.php
public function setOptions($options)
    {
        /** @noinspection UnSafeIsSetOverArrayInspection */
        if (isset($options['time_format'])) {
            $this->setFormat($options['time_format']);

            unset($options['time_format']);
        }

        parent::setOptions($options);

        return $this;
    }
public function setOptions($options)
    {
        /** @noinspection UnSafeIsSetOverArrayInspection */
        if (isset($options['time_format'])) {
            $this->setFormat($options['time_format']);

            unset($options['time_format']);
        }

        parent::setOptions($options);

        return $this;
    }
public function setOptions ( $ options ) { /** @noinspection UnSafeIsSetOverArrayInspection */ if ( isset ( $ options [ 'time_format' ] ) ) { $ this -> setFormat ( $ options [ 'time_format' ] ) ; unset ( $ options [ 'time_format' ] ) ; } parent :: setOptions ( $ options ) ; return $ this ; }
Accepted options for DateTime:
- format: A \DateTime compatible string

@param array|\Traversable $options

@return $this
Accepted options for DateTime : - format : A \ DateTime compatible string