You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
26 lines
434 B
26 lines
434 B
<?php
|
|
|
|
declare(strict_types=1);
|
|
|
|
namespace GuzzleHttp\Tests\Psr7;
|
|
|
|
use GuzzleHttp\Psr7\Stream;
|
|
use GuzzleHttp\Psr7\Utils;
|
|
|
|
final class ReadSeekOnlyStream extends Stream
|
|
{
|
|
public function __construct()
|
|
{
|
|
parent::__construct(Utils::tryFopen('php://memory', 'wb'));
|
|
}
|
|
|
|
public function isSeekable(): bool
|
|
{
|
|
return true;
|
|
}
|
|
|
|
public function isReadable(): bool
|
|
{
|
|
return false;
|
|
}
|
|
}
|
|
|