mirror of
https://github.com/YGGverse/Yoda.git
synced 2026-04-02 17:45:28 +00:00
allow nullable _subtitle value, fix getValue data type returned
This commit is contained in:
parent
5c917945b3
commit
112fa6507f
2 changed files with 5 additions and 5 deletions
|
|
@ -66,12 +66,12 @@ class Title
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
public function getValue(): string
|
public function getValue(): ?string
|
||||||
{
|
{
|
||||||
return $this->gtk->get_text();
|
return $this->gtk->get_text();
|
||||||
}
|
}
|
||||||
|
|
||||||
public function getSubtitle(): string
|
public function getSubtitle(): ?string
|
||||||
{
|
{
|
||||||
return $this->gtk->get_subtitle();
|
return $this->gtk->get_subtitle();
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -6,16 +6,16 @@ namespace Yggverse\Yoda\Gtk\Browser\Container\Tab\Page\Title;
|
||||||
|
|
||||||
class Label extends \GtkLabel
|
class Label extends \GtkLabel
|
||||||
{
|
{
|
||||||
private string $_subtitle = '';
|
private ?string $_subtitle = null;
|
||||||
|
|
||||||
public function set_subtitle(
|
public function set_subtitle(
|
||||||
string $value
|
?string $value = null
|
||||||
): void
|
): void
|
||||||
{
|
{
|
||||||
$this->_subtitle = $value;
|
$this->_subtitle = $value;
|
||||||
}
|
}
|
||||||
|
|
||||||
public function get_subtitle(): string
|
public function get_subtitle(): ?string
|
||||||
{
|
{
|
||||||
return $this->_subtitle;
|
return $this->_subtitle;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue