height = $height; $this->width = $width; $this->eyeHeight = $eyeHeight ?? min($this->height / 2 + 0.1, $this->height); } public function getHeight() : float{ return $this->height; } public function getWidth() : float{ return $this->width; } public function getEyeHeight() : float{ return $this->eyeHeight; } public function scale(float $newScale) : self{ return new self( $this->height * $newScale, $this->width * $newScale, $this->eyeHeight * $newScale ); } }