public function getIdentifiedElements()
 {
     $returnValue = new IdentifierCollection();
     $returnValue->addMultiple($this->getChoices(0));
     $returnValue->addMultiple($this->getChoices(1));
     return $returnValue;
 }
Пример #2
0
 public function getIdentifiedElements()
 {
     $returnValue = new IdentifierCollection();
     foreach ($this->elements as $element) {
         if ($element instanceof IdentifiedElementContainer) {
             $returnValue->merge($element->getIdentifiedElements());
         }
         if ($element instanceof IdentifiedElement) {
             $returnValue->add($element);
         }
     }
     return $returnValue;
 }
 public function merge(IdentifierCollection $identifierCollection)
 {
     foreach ($identifierCollection->get() as $elements) {
         $this->addMultiple($elements);
     }
 }