oldText = $this->sign->getFaceText($this->frontFace); parent::__construct($sign); } public function getSign() : BaseSign{ return $this->sign; } public function getPlayer() : Player{ return $this->player; } /** * Returns the text currently on the sign. */ public function getOldText() : SignText{ return $this->oldText; } /** * Returns the text which will be on the sign after the event. */ public function getNewText() : SignText{ return $this->text; } /** * Sets the text to be written on the sign after the event. */ public function setNewText(SignText $text) : void{ $this->text = $text; } public function isFrontFace() : bool{ return $this->frontFace; } }