valueIsSet() protected method

protected valueIsSet ( $message = 'Object is undefined' )
Esempio n. 1
0
 protected function valueIsSet($message = 'Interval is undefined')
 {
     if (self::isDateInterval(parent::valueIsSet($message)->value) === false) {
         throw new exceptions\logic($message);
     }
     return $this;
 }
Esempio n. 2
0
 /**
  * {@inheritdoc}
  */
 protected function valueIsSet($message = 'DataSource is undefined')
 {
     return parent::valueIsSet($message);
 }
 protected function valueIsSet($message = 'Exception is undefined')
 {
     return parent::valueIsSet($message);
 }
Esempio n. 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;
 }
Esempio n. 5
0
 /**
  * {@inheritdoc}
  */
 protected function valueIsSet($message = 'Enumerable is undefined')
 {
     return parent::valueIsSet($message);
 }
Esempio n. 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;
 }