| 1 | <?php |
||
| 15 | class ItemBuilder |
||
| 16 | { |
||
| 17 | /** @var ItemFactoryInterface[] */ |
||
| 18 | protected $itemFactories = []; |
||
| 19 | |||
| 20 | /** |
||
| 21 | * @param ItemFactoryInterface $itemFactory |
||
| 22 | */ |
||
| 23 | public function addItemFactory(ItemFactoryInterface $itemFactory) |
||
| 27 | |||
| 28 | /** |
||
| 29 | * @param string $class |
||
| 30 | * @param string $id |
||
| 31 | * @param string $path |
||
| 32 | * @param string $label |
||
| 33 | * @param string $permission |
||
| 34 | * @param array $options |
||
| 35 | * |
||
| 36 | * @return ItemInterface |
||
| 37 | */ |
||
| 38 | public function create($class, $id, $path, $label, $permission, $options =[]) |
||
| 46 | } |
||
| 47 |