Metabor\Statemachine\Util\StateCollectionMerger::mergeStateCollection PHP Method

mergeStateCollection() protected method

protected mergeStateCollection ( MetaborStd\Statemachine\StateCollectionInterface $source )
$source MetaborStd\Statemachine\StateCollectionInterface
    protected function mergeStateCollection(StateCollectionInterface $source)
    {
        /* @var $sourceState StateInterface */
        foreach ($source->getStates() as $sourceState) {
            $this->mergeState($sourceState);
        }
    }