public function __construct(EntityBodyInterface $body) { $this->remoteStream = $body; $this->body = new EntityBody(fopen('php://temp', 'r+')); }