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.
27 lines
434 B
27 lines
434 B
2 months ago
|
<?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;
|
||
|
}
|
||
|
}
|