1 | <?php |
||
8 | class SelectableItem implements MenuItemInterface |
||
9 | { |
||
10 | use SelectableTrait; |
||
11 | |||
12 | /** |
||
13 | * @var callable |
||
14 | */ |
||
15 | private $selectAction; |
||
16 | |||
17 | public function __construct( |
||
28 | |||
29 | /** |
||
30 | * Execute the items callable if required |
||
31 | */ |
||
32 | public function getSelectAction() : ?callable |
||
36 | |||
37 | /** |
||
38 | * Return the raw string of text |
||
39 | */ |
||
40 | public function getText() : string |
||
44 | |||
45 | /** |
||
46 | * Set the raw string of text |
||
47 | */ |
||
48 | public function setText(string $text) : void |
||
52 | } |
||
53 |