/** * @param AbstractStep $step * @return Installer */ protected function addStep(AbstractStep $step) { if (!$this->firstStep) { $this->firstStep = $step; $this->lastStep = $step; } else { $this->lastStep->chainNextStep($step); $this->lastStep = $step; } return $this; }
/** * @param AbstractStep $step * @return Installer */ protected function addStep(AbstractStep $step) { if (!$this->firstStep) { $this->firstStep = $step; $this->lastStep = $step; $step->setPixie($this->pixie); $step->setView($this->view); } else { $this->lastStep->chainNextStep($step); $this->lastStep = $step; } return $this; }