/** * Add an action to a specific stack * * @param AbstractAction $oProcess * @param string $sStack * * @return $this */ public function add(AbstractAction $oProcess, $sStack = null) { if (empty($sStack) === true) { $sStack = self::SINGLE; } $sProcess = $oProcess->getName(); if (defined('VERBOSE') === true and VERBOSE === true) { \Mergy\TextUI\Output::info(sprintf('Adding action "%s" to the %s-stack', $sProcess, $sStack)); } $this->_aStacks[$sStack][$sProcess] = $oProcess; return $this; }