コード例 #1
0
ファイル: Verification.php プロジェクト: rubendgr/lunr
 /**
  * Check whether input is a valid time definition.
  *
  * @param DateTime $datetime Instance of the DateTime class
  *
  * @return Verification $self Self reference
  */
 public function is_time($datetime)
 {
     if ($this->pointer === NULL) {
         return $this;
     }
     $this->result[$this->pointer]['is_time'] = $datetime->is_time($this->data[$this->pointer]);
     return $this;
 }