public function __construct(TypeInfoInterface $type, ParsedMethod $method) { $this->key = $type->getKey() . ':method:' . strtolower($method->getName()); $this->type = $type; $this->method = $method; }
public function is(TypeInfoInterface $type) { return $this->key == $type->getKey(); }
public function __construct(TypeInfoInterface $type, ParsedField $field) { $this->key = $type->getKey() . ':field:' . strtolower($field->getName()); $this->type = $type; $this->field = $field; }