ref = $ref; } #[\ReturnTypeWillChange] public function jsonSerialize() { return (object) ['$ref' => $this->ref]; } }