/** */ protected function mergeStateCollection(StateCollectionInterface $source) { /* @var $sourceState StateInterface */ foreach ($source->getStates() as $sourceState) { $this->mergeState($sourceState); } }
/** * @param StateCollectionInterface $stateCollection */ public function addStateCollection(StateCollectionInterface $stateCollection) { $this->addStates($stateCollection->getStates()); }