modularId = $modularId; $this->previous = $previous; $this->next = $next; $this->steps = $steps; } /** * @return string */ public function getModularId(): string { return $this->modularId; } /** * @return string */ public function getPrevious(): string { return $this->previous; } /** * @return string */ public function getNext(): string { return $this->next; } /** * @return array */ public function getSteps(): array { return (new GenerateSteps())->execute($this->steps); } }