public function rule_card_to_date($a) { $msg = 'Not a valid date'; if (!$this->card_date_parser($a, 'to')) { return $this->fail($msg); } }