Blackfire\Player\Scenario::getRoot PHP Method

getRoot() public method

public getRoot ( )
    public function getRoot()
    {
        return $this->root;
    }

Usage Example

Beispiel #1
0
 /**
  * @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;
 }
All Usage Examples Of Blackfire\Player\Scenario::getRoot