Browse Source

move setValue method to the abstraction set

PHP-GTK3
yggverse 4 months ago
parent
commit
23ac5f4e0d
  1. 13
      src/Abstract/Entity/Entry.php
  2. 13
      src/Entity/Window/Tab/Address/Navbar/Request.php
  3. 13
      src/Entity/Window/Tab/History/Navbar/Filter.php

13
src/Abstract/Entity/Entry.php

@ -61,4 +61,17 @@ abstract class Entry @@ -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
)
)
);
}
}

13
src/Entity/Window/Tab/Address/Navbar/Request.php

@ -28,17 +28,4 @@ class Request extends \Yggverse\Yoda\Abstract\Entity\Window\Tab\Address\Navbar\E @@ -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
)
)
);
}
}

13
src/Entity/Window/Tab/History/Navbar/Filter.php

@ -26,17 +26,4 @@ class Filter extends \Yggverse\Yoda\Abstract\Entity\Window\Tab\History\Navbar\En @@ -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
)
)
);
}
}
Loading…
Cancel
Save