entity = $player; $this->oldLevel = $oldLevel; $this->oldProgress = $oldProgress; $this->newLevel = $newLevel; $this->newProgress = $newProgress; } /** * @return int */ public function getOldLevel() : int{ return $this->oldLevel; } /** * @return float */ public function getOldProgress() : float{ return $this->oldProgress; } /** * @return int|null null indicates no change */ public function getNewLevel() : ?int{ return $this->newLevel; } /** * @return float|null null indicates no change */ public function getNewProgress() : ?float{ return $this->newProgress; } /** * @param int|null $newLevel */ public function setNewLevel(?int $newLevel) : void{ $this->newLevel = $newLevel; } /** * @param float|null $newProgress */ public function setNewProgress(?float $newProgress) : void{ $this->newProgress = $newProgress; } }