コード例 #1
0
 /**
  */
 protected function mergeStateCollection(StateCollectionInterface $source)
 {
     /* @var $sourceState StateInterface */
     foreach ($source->getStates() as $sourceState) {
         $this->mergeState($sourceState);
     }
 }
コード例 #2
0
ファイル: GraphBuilder.php プロジェクト: metabor/statemachine
 /**
  * @param StateCollectionInterface $stateCollection
  */
 public function addStateCollection(StateCollectionInterface $stateCollection)
 {
     $this->addStates($stateCollection->getStates());
 }