public function Validate() { $basicValidation = parent::Validate(); if (!($basicValidation === "mission_ok")) { // TODO: Show a message to the user and return, for now just error out throw new Exception($basicValidation); } // Everything is good to go, set isValid to true $this->IsValid(true); }