valueIsSet() protected méthode

protected valueIsSet ( $message = 'Object is undefined' )
 protected function valueIsSet($message = 'Interval is undefined')
 {
     if (self::isDateInterval(parent::valueIsSet($message)->value) === false) {
         throw new exceptions\logic($message);
     }
     return $this;
 }
 /**
  * {@inheritdoc}
  */
 protected function valueIsSet($message = 'DataSource is undefined')
 {
     return parent::valueIsSet($message);
 }
 protected function valueIsSet($message = 'Exception is undefined')
 {
     return parent::valueIsSet($message);
 }
Exemple #4
0
 protected function valueIsSet($message = 'Instance of \\dateTime is undefined')
 {
     if (parent::valueIsSet($message)->value instanceof \dateTime === false) {
         throw new exceptions\logic($message);
     }
     return $this;
 }
 /**
  * {@inheritdoc}
  */
 protected function valueIsSet($message = 'Enumerable is undefined')
 {
     return parent::valueIsSet($message);
 }
Exemple #6
0
 protected function valueIsSet($message = null)
 {
     $message = $message ?: 'Value is not an instance of \\dateTime or \\dateTimeInterface';
     if (self::isDateTime(parent::valueIsSet($message)->value) === false) {
         throw new exceptions\logic($message);
     }
     return $this;
 }