name = $name; $this->description = $description; $this->type = $type; $this->required = $required; } #[\ReturnTypeWillChange] public function jsonSerialize() { return [ 'type' => $this->type, 'description' => $this->description ]; } }