/**
  * {@inheritDoc}
  */
 public function __construct($name = null)
 {
     parent::__construct($name);
     if (!class_exists(static::$dateTimeClass)) {
         static::$dateTimeClass = 'DateTime';
     }
 }
Beispiel #2
0
 /**
  * {@inheritDoc}
  */
 public function __construct($name = null)
 {
     parent::__construct($name);
     if (!class_exists(static::$dateTimeClass)) {
         static::$dateTimeClass = 'DateTime';
     }
     $this->_datetimeInstance = new static::$dateTimeClass();
 }
Beispiel #3
0
 /**
  * {@inheritDoc}
  */
 public function __construct($name = null)
 {
     parent::__construct($name);
     $this->_setClassName(static::$dateTimeClass, 'DateTime');
 }