The containing class is available as IO\MemoryHandle in the www repository.
IO\MemoryHandle
public function readImpl( ?int $max_bytes = NULL, ): string;
?int $max_bytes = NULL
string