json = $json; } public function readableMessage() { if(!empty($this->json->title)) { $this->readable .= $this->json->title; } if(!empty($this->json->message)) { $this->readable .= $this->json->message; } if(!empty($this->json->state)) { $this->readable .= $this->json->state; } return $this->readable; } }