Ejemplo n.º 1
0
 public function parseChoice(ChoiceNode $choiceNode)
 {
     $tag = $this->parse($choiceNode->getTag());
     return $this->parse($choiceNode->getChoices()[$tag]);
 }
Ejemplo n.º 2
0
 public function parseChoice(ChoiceNode $choiceNode)
 {
     $this->expectSkip(3);
     $tag = $this->parseVersionedInt();
     $field = $this->tree->getNode($choiceNode->getChoices()[$tag]);
     if ($field === NULL) {
         $this->skip();
         return NULL;
     }
     return $this->parse($field);
 }