src/Scenario/Scenario.php
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;
    }
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}