data['registeredSession'])) { return false; } if (is_null($this->data['lunchOptions'])) { return false; } } return true; } /** * Set the data under validation. * * @param array $data * @return $this */ public function setData($data) { $this->data = $data; return $this; } /** * Get the validation error message. * * @return string */ public function message() { return 'The validation error message.'; } }