<?php
class Transport {
    private $fp;

    public function open(): void {
        $this->fp = "buffer";
    }

    public function read(): string {
        return (string) $this->fp;
    }
}

$t = new Transport();
$t->open();
echo $t->read(), PHP_EOL;
