player = $player; $this->message = $message; $this->format = $format; $this->recipients = $recipients; } public function getMessage() : string{ return $this->message; } public function setMessage(string $message) : void{ $this->message = $message; } /** * Changes the player that is sending the message */ public function setPlayer(Player $player) : void{ $this->player = $player; } public function getFormat() : string{ return $this->format; } public function setFormat(string $format) : void{ $this->format = $format; } /** * @return CommandSender[] */ public function getRecipients() : array{ return $this->recipients; } /** * @param CommandSender[] $recipients */ public function setRecipients(array $recipients) : void{ Utils::validateArrayValueType($recipients, function(CommandSender $_) : void{}); $this->recipients = $recipients; } }