width = $width; $this->height = $height; $this->positionVertical = $positionVertical; $this->type = $drawBar ? self::TYPE_BAR : self::TYPE_SPACING; } public function getWidth() : int { return $this->width; } public function getHeight() : int { return $this->height; } public function getPositionVertical() : int { return $this->positionVertical; } public function isBar() : bool { return $this->type === self::TYPE_BAR; } }