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; }
public function __construct(TypeInfoInterface $type, ParsedField $field) { $this->key = $type->getKey() . ':field:' . strtolower($field->getName()); $this->type = $type; $this->field = $field; }