enqueue($cmd); } return; } if (null !== $command) { parent::enqueue($command); } } public function execute(ApplicationInterface $scope = null) { $this->setIteratorMode(static::IT_MODE_DELETE); $recursive = new self; foreach ($this as $command) { $recursive->enqueue($command->execute($scope)); } if (count($recursive) > 0) { return $recursive; } } }