/** * Check whether input is a valid date definition. * * @param DateTime $datetime Instance of the DateTime class * * @return Verification $self Self reference */ public function is_date($datetime) { if ($this->pointer === NULL) { return $this; } $this->result[$this->pointer]['is_date'] = $datetime->is_date($this->data[$this->pointer]); return $this; }