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