Skip to content

Commit f649bf6

Browse files
authored
Merge pull request #92 from Lynesth/patch-10
Adds public function getSubMenu() to MenuMenuItem
2 parents beaa41c + 9624bde commit f649bf6

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

src/MenuItem/MenuMenuItem.php

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,14 @@ public function getText() : string
3939
{
4040
return $this->text;
4141
}
42+
43+
/**
44+
* Returns the sub menu
45+
*/
46+
public function getSubMenu() : CliMenu
47+
{
48+
return $this->subMenu;
49+
}
4250

4351
/**
4452
* Display the sub menu

0 commit comments

Comments
 (0)