name = $name; $this->fields = $fields; $this->description = $description; } /** * Get the type name. * * @return string */ public function getName(): string { return $this->name; } /** * Get a list of fields that make up the possible return or input values of a type. * * @return Field[] */ public function getFields(): array { return $this->fields; } /** * Get a human-readable description of the type. * * @return string */ public function getDescription(): string { return $this->description; } }