page = $page; // Init container $this->gtk = new Label( $this->_value ); $this->gtk->set_width_chars( $this->_length ); $this->gtk->set_ellipsize( $this->_ellipsize ); } public function setValue( ?string $value = null, ?string $subtitle = null ): void { $this->gtk->set_text( is_null($value) ? $this->_value : trim( $value ) ); $this->setSubtitle( $subtitle ); } public function setSubtitle( ?string $subtitle = null ): void { $this->gtk->set_subtitle( is_null($subtitle) ? $this->_subtitle : strtolower( trim( $subtitle ) ) ); } public function getValue(): ?string { return $this->gtk->get_text(); } public function getSubtitle(): ?string { return $this->gtk->get_subtitle(); } }