. */ namespace SP\Http; /** * Class Message * * @package SP\Http */ final class Message { const TYPE_OK = 0; const TYPE_ERROR = 1; const TYPE_WARNING = 2; /** * @var int */ protected $type = 0; /** * @var string */ protected $description; /** * @var string */ protected $hint; /** * @return int */ public function getType(): int { return $this->type; } /** * @param int $type */ public function setType(int $type) { $this->type = $type; } /** * @return string|null */ public function getDescription(): ?string { return $this->description; } /** * @param string $description */ public function setDescription(string $description) { $this->description = $description; } /** * @return string|null */ public function getHint(): ?string { return $this->hint; } /** * @param string $hint */ public function setHint(string $hint) { $this->hint = $hint; } }