setMessage($message); } if ($data !== null) { $this->setData($data); } } /** * Get message related to the result. * * @return string */ public function getMessage() { return $this->message; } /** * Get detailed info on the test result (if available). * * @return mixed|null */ public function getData() { return $this->data; } /** * @param mixed|null $data */ public function setData($data) { $this->data = $data; } /** * @param null|string $message */ public function setMessage($message) { $this->message = $message; } }