/**
  * {@inheritdoc}
  */
 public function configure(ScenarioBuilder $scenarioBuilder) : ScenarioInterface
 {
     $this->eventsNamesList = $scenarioBuilder->getEventNamesList();
     $this->neededIncomingStatesList = $scenarioBuilder->getNeededIncomingStatesList();
     $this->neededOutgoingStatesList = $scenarioBuilder->getNeededOutgoingStatesList();
     $this->neededStatesList = $scenarioBuilder->getNeededStatesList();
     $this->forbiddenStatesList = $scenarioBuilder->getForbiddenStatesList();
     $this->neededStatedClassName = $scenarioBuilder->getStatedClassName();
     $this->neededStatedObject = $scenarioBuilder->getObserved();
     $this->callback = $scenarioBuilder->getCallable();
     return $this;
 }
 /**
  * {@inheritdoc}
  */
 public function build(ScenarioInterface $scenario) : ScenarioInterface
 {
     $this->configureBuilder($this->parseYaml($this->getScenarioContent($this->yamlScenario)));
     return parent::build($scenario);
 }