entity = $human; $this->player = $human; $this->amount = $amount; $this->cause = $cause; } /** * @return Human */ public function getPlayer(){ return $this->player; } public function getAmount() : float{ return $this->amount; } public function setAmount(float $amount) : void{ $this->amount = $amount; } /** * Returns an int cause of the exhaustion - one of the constants at the top of this class. */ public function getCause() : int{ return $this->cause; } }