Exemple #1
0
 public function storeField(ParsedField $field, ParsedType $type)
 {
     $n = strtolower($type->getName());
     if (empty($this->fields[$n])) {
         $this->fields[$n] = [];
     }
     $this->fields[$n][$field->getName()] = $field;
 }
Exemple #2
0
 public function __construct(TypeInfoInterface $type, ParsedField $field)
 {
     $this->key = $type->getKey() . ':field:' . strtolower($field->getName());
     $this->type = $type;
     $this->field = $field;
 }