Skip to content

Commit e3b994e

Browse files
committed
CS
1 parent 2c59f07 commit e3b994e

File tree

1 file changed

+1
-20
lines changed

1 file changed

+1
-20
lines changed

src/Builder/BuilderUtils.php

Lines changed: 1 addition & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -13,11 +13,6 @@
1313
*/
1414
trait BuilderUtils
1515
{
16-
/**
17-
* @var null|Builder
18-
*/
19-
private $parent;
20-
2116
/**
2217
* @var self[]
2318
*/
@@ -81,7 +76,7 @@ public function addSubMenu(string $id, string $text) : CliMenuBuilder
8176
}
8277

8378
/**
84-
* Add a submenu from an existing builder. Required a unique ID and the text. The text will be displayed as the
79+
* Add a submenu from an existing builder. Required a unique ID and the text. The text will be displayed as the
8580
* item text in the parent menu.
8681
*/
8782
public function addSubMenuFromExistingBuilder(string $id, string $text, CliMenuBuilder $subMenuBuilder) : self
@@ -119,18 +114,4 @@ private function buildSubMenus(array $items) : array
119114
);
120115
}, $items);
121116
}
122-
123-
/**
124-
* Return to parent builder
125-
*
126-
* @throws RuntimeException
127-
*/
128-
public function end() : ?Builder
129-
{
130-
if (null === $this->parent) {
131-
throw new RuntimeException('No parent builder to return to');
132-
}
133-
134-
return $this->parent;
135-
}
136117
}

0 commit comments

Comments
 (0)