sign = $sign; $this->player = $player; $this->text = $text; } /** * @return Sign */ public function getSign() : Sign{ return $this->sign; } /** * @return Player */ public function getPlayer() : Player{ return $this->player; } /** * Returns the text currently on the sign. * * @return SignText */ public function getOldText() : SignText{ return $this->sign->getText(); } /** * Returns the text which will be on the sign after the event. * * @return SignText */ public function getNewText() : SignText{ return $this->text; } /** * Sets the text to be written on the sign after the event. * * @param SignText $text */ public function setNewText(SignText $text) : void{ $this->text = $text; } }