From 23ac5f4e0dbd745f53ee0dfcc7c0ffab6aada757 Mon Sep 17 00:00:00 2001 From: yggverse Date: Fri, 5 Jul 2024 02:35:03 +0300 Subject: [PATCH] move setValue method to the abstraction set --- src/Abstract/Entity/Entry.php | 13 +++++++++++++ src/Entity/Window/Tab/Address/Navbar/Request.php | 13 ------------- src/Entity/Window/Tab/History/Navbar/Filter.php | 13 ------------- 3 files changed, 13 insertions(+), 26 deletions(-) diff --git a/src/Abstract/Entity/Entry.php b/src/Abstract/Entity/Entry.php index b3e3bd8..e669afd 100644 --- a/src/Abstract/Entity/Entry.php +++ b/src/Abstract/Entity/Entry.php @@ -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 + ) + ) + ); + } } \ No newline at end of file diff --git a/src/Entity/Window/Tab/Address/Navbar/Request.php b/src/Entity/Window/Tab/Address/Navbar/Request.php index 5b06c01..a4451c8 100644 --- a/src/Entity/Window/Tab/Address/Navbar/Request.php +++ b/src/Entity/Window/Tab/Address/Navbar/Request.php @@ -28,17 +28,4 @@ class Request extends \Yggverse\Yoda\Abstract\Entity\Window\Tab\Address\Navbar\E ) ); } - - public function setValue( - ?string $value = null - ): void - { - $this->gtk->set_text( - trim( - strval( - $value - ) - ) - ); - } } \ No newline at end of file diff --git a/src/Entity/Window/Tab/History/Navbar/Filter.php b/src/Entity/Window/Tab/History/Navbar/Filter.php index 1e79d1a..5ed87d2 100644 --- a/src/Entity/Window/Tab/History/Navbar/Filter.php +++ b/src/Entity/Window/Tab/History/Navbar/Filter.php @@ -26,17 +26,4 @@ class Filter extends \Yggverse\Yoda\Abstract\Entity\Window\Tab\History\Navbar\En $entry->get_text() ); } - - public function setValue( - ?string $value = null - ): void - { - $this->gtk->set_text( - trim( - strval( - $value - ) - ) - ); - } } \ No newline at end of file