42 foreach ($this->_requiredParams as $param) {
43 if (!isset(
$data[$param]) ||
$data[$param] ===
null) {
44 throw new \InvalidArgumentException(
"Missing required param " . $param);
57 return $this->_data[
'id'];
69 if ($this->_next ===
null) {
70 $this->_next = $command;
72 $this->_next->chain($command);
83 public function execute(array $itemParams = [])
85 $itemParams = $this->
_execute($itemParams);
86 if ($this->_next !==
null) {
87 $itemParams = $this->_next->execute($itemParams);
98 abstract protected function _execute(array $itemParams);
_execute(array $itemParams)
__construct(array $data=[])
chain(\Magento\Backend\Model\Menu\Builder\AbstractCommand $command)
execute(array $itemParams=[])