fileName = $fileName; $this->handle = fopen('php://memory', 'rw'); fwrite($this->handle, $code); rewind($this->handle); $this->binaryReader = new JVM\Stream\BinaryReader($this->handle); } public function getBinaryReader(): JVM\Stream\BinaryReader { return $this->binaryReader; } public function __toString(): string { return $this->fileName; } }