-
Notifications
You must be signed in to change notification settings - Fork 79
Commit
psr/http-message:^2.0
- Loading branch information
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,81 @@ | ||
<?php | ||
|
||
declare(strict_types=1); | ||
|
||
namespace Dummy; | ||
|
||
use Psr\Http\Message\StreamInterface; | ||
|
||
final class StringStream implements StreamInterface | ||
{ | ||
/** | ||
* @var string | ||
*/ | ||
private $value; | ||
|
||
public function __construct(string $value) | ||
{ | ||
$this->value = $value; | ||
} | ||
|
||
public function __toString(): string | ||
{ | ||
return $this->value; | ||
} | ||
|
||
public function close(): void | ||
{ | ||
} | ||
|
||
public function detach() | ||
{ | ||
} | ||
|
||
public function getSize(): ?int | ||
Check failure on line 34 in tests/Dummy/StringStream.php GitHub Actions / PHP 7.3
Check failure on line 34 in tests/Dummy/StringStream.php GitHub Actions / PHP 7.4
|
||
{ | ||
} | ||
|
||
public function tell(): int | ||
Check failure on line 38 in tests/Dummy/StringStream.php GitHub Actions / PHP 7.3
Check failure on line 38 in tests/Dummy/StringStream.php GitHub Actions / PHP 7.4
|
||
{ | ||
} | ||
|
||
public function eof(): bool | ||
Check failure on line 42 in tests/Dummy/StringStream.php GitHub Actions / PHP 7.3
Check failure on line 42 in tests/Dummy/StringStream.php GitHub Actions / PHP 7.4
|
||
{ | ||
} | ||
|
||
public function isSeekable(): bool | ||
Check failure on line 46 in tests/Dummy/StringStream.php GitHub Actions / PHP 7.3
Check failure on line 46 in tests/Dummy/StringStream.php GitHub Actions / PHP 7.4
|
||
{ | ||
} | ||
|
||
public function seek(int $offset, int $whence = SEEK_SET): void | ||
{ | ||
} | ||
|
||
public function rewind(): void | ||
{ | ||
} | ||
|
||
public function isWritable(): bool | ||
Check failure on line 58 in tests/Dummy/StringStream.php GitHub Actions / PHP 7.3
Check failure on line 58 in tests/Dummy/StringStream.php GitHub Actions / PHP 7.4
|
||
{ | ||
} | ||
|
||
public function write(string $string): int | ||
Check failure on line 62 in tests/Dummy/StringStream.php GitHub Actions / PHP 7.3
Check failure on line 62 in tests/Dummy/StringStream.php GitHub Actions / PHP 7.4
|
||
{ | ||
} | ||
|
||
public function isReadable(): bool | ||
Check failure on line 66 in tests/Dummy/StringStream.php GitHub Actions / PHP 7.3
Check failure on line 66 in tests/Dummy/StringStream.php GitHub Actions / PHP 7.4
|
||
{ | ||
} | ||
|
||
public function read(int $length): string | ||
Check failure on line 70 in tests/Dummy/StringStream.php GitHub Actions / PHP 7.3
Check failure on line 70 in tests/Dummy/StringStream.php GitHub Actions / PHP 7.4
|
||
{ | ||
} | ||
|
||
public function getContents(): string | ||
Check failure on line 74 in tests/Dummy/StringStream.php GitHub Actions / PHP 7.3
Check failure on line 74 in tests/Dummy/StringStream.php GitHub Actions / PHP 7.4
|
||
{ | ||
} | ||
|
||
public function getMetadata(?string $key = null) | ||
{ | ||
} | ||
} |