valueIsSet() protected method

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