Browse Source

use namespace

PHP-GTK3
yggverse 5 months ago
parent
commit
3823e5674d
  1. 6
      src/Entity/Browser/Menu/Tab/Add.php
  2. 6
      src/Entity/Browser/Menu/Tab/Close.php

6
src/Entity/Browser/Menu/Tab/Add.php

@ -4,18 +4,20 @@ declare(strict_types=1);
namespace Yggverse\Yoda\Entity\Browser\Menu\Tab; namespace Yggverse\Yoda\Entity\Browser\Menu\Tab;
use \Yggverse\Yoda\Entity\Browser\Menu\Tab;
class Add class Add
{ {
public \GtkMenuItem $gtk; public \GtkMenuItem $gtk;
// Dependencies // Dependencies
public \Yggverse\Yoda\Entity\Browser\Menu\Tab $tab; public Tab $tab;
// Defaults // Defaults
private string $_label = 'Add'; private string $_label = 'Add';
public function __construct( public function __construct(
\Yggverse\Yoda\Entity\Browser\Menu\Tab $tab Tab $tab
) { ) {
// Init dependencies // Init dependencies
$this->tab = $tab; $this->tab = $tab;

6
src/Entity/Browser/Menu/Tab/Close.php

@ -4,19 +4,21 @@ declare(strict_types=1);
namespace Yggverse\Yoda\Entity\Browser\Menu\Tab; namespace Yggverse\Yoda\Entity\Browser\Menu\Tab;
use \Yggverse\Yoda\Entity\Browser\Menu\Tab;
class Close class Close
{ {
public \GtkMenuItem $gtk; public \GtkMenuItem $gtk;
// Dependencies // Dependencies
public \Yggverse\Yoda\Entity\Browser\Menu\Tab $tab; public Tab $tab;
// Defaults // Defaults
private string $_label = 'Close'; private string $_label = 'Close';
private string $_tooltip = 'Close active tab (double click on tab)'; private string $_tooltip = 'Close active tab (double click on tab)';
public function __construct( public function __construct(
\Yggverse\Yoda\Entity\Browser\Menu\Tab $tab Tab $tab
) { ) {
// Init dependencies // Init dependencies
$this->tab = $tab; $this->tab = $tab;

Loading…
Cancel
Save