plugin/path/Entity/Step.php
public function addChild(Step $step)
    {
        if (!$this->children->contains($step)) {
            $this->children->add($step);
            $step->setParent($this);
        }

        return $this;
    }
public function addChild(Step $step)
    {
        if (!$this->children->contains($step)) {
            $this->children->add($step);
            $step->setParent($this);
        }

        return $this;
    }
public function addChild ( Step $ step ) { if ( ! $ this -> children -> contains ( $ step ) ) { $ this -> children -> add ( $ step ) ; $ step -> setParent ( $ this ) ; } return $ this ; }
Add new child to the step.

@param Step $step

@return Step
Add new child to the step .