public function getRoot()
{
return $this->root;
}
/** * @return Step */ public function add(Scenario $scenario) { if (!($step = $scenario->getRoot())) { throw new LogicException('Unable to add an empty scenario.'); } $options = $this->root->getOptions(); $this->root = clone $scenario->getRoot(); $this->root->setOptions($options); return $this->root; }