move setValue method to the abstraction set

This commit is contained in:
yggverse 2024-07-05 02:35:03 +03:00
parent e782204b43
commit 23ac5f4e0d
3 changed files with 13 additions and 26 deletions

View file

@ -61,4 +61,17 @@ abstract class Entry
\GtkEntry $entry,
\GdkEvent $event
): void;
public function setValue(
?string $value = null
): void
{
$this->gtk->set_text(
trim(
strval(
$value
)
)
);
}
}