class Stream in Zircon Profile 8
Same name in this branch
- 8 vendor/zendframework/zend-diactoros/src/Stream.php \Zend\Diactoros\Stream
- 8 vendor/guzzlehttp/psr7/src/Stream.php \GuzzleHttp\Psr7\Stream
- 8 vendor/symfony/psr-http-message-bridge/Tests/Fixtures/Stream.php \Symfony\Bridge\PsrHttpMessage\Tests\Fixtures\Stream
Same name and namespace in other branches
- 8.0 vendor/symfony/psr-http-message-bridge/Tests/Fixtures/Stream.php \Symfony\Bridge\PsrHttpMessage\Tests\Fixtures\Stream
@author Kévin Dunglas <dunglas@gmail.com>
Hierarchy
- class \Symfony\Bridge\PsrHttpMessage\Tests\Fixtures\Stream implements StreamInterface
Expanded class hierarchy of Stream
1 file declares its use of Stream
- HttpFoundationFactoryTest.php in vendor/
symfony/ psr-http-message-bridge/ Tests/ Factory/ HttpFoundationFactoryTest.php
File
- vendor/
symfony/ psr-http-message-bridge/ Tests/ Fixtures/ Stream.php, line 19
Namespace
Symfony\Bridge\PsrHttpMessage\Tests\FixturesView source
class Stream implements StreamInterface {
private $stringContent;
public function __construct($stringContent = '') {
$this->stringContent = $stringContent;
}
public function __toString() {
return $this->stringContent;
}
public function close() {
}
public function detach() {
}
public function getSize() {
}
public function tell() {
return 0;
}
public function eof() {
return true;
}
public function isSeekable() {
return false;
}
public function seek($offset, $whence = SEEK_SET) {
}
public function rewind() {
}
public function isWritable() {
return false;
}
public function write($string) {
}
public function isReadable() {
return true;
}
public function read($length) {
return $this->stringContent;
}
public function getContents() {
return $this->stringContent;
}
public function getMetadata($key = null) {
}
}
Members
Name | Modifiers | Type | Description | Overrides |
---|---|---|---|---|
Stream:: |
private | property | ||
Stream:: |
public | function |
Closes the stream and any underlying resources. Overrides StreamInterface:: |
|
Stream:: |
public | function |
Separates any underlying resources from the stream. Overrides StreamInterface:: |
|
Stream:: |
public | function |
Returns true if the stream is at the end of the stream. Overrides StreamInterface:: |
|
Stream:: |
public | function |
Returns the remaining contents in a string Overrides StreamInterface:: |
|
Stream:: |
public | function |
Get stream metadata as an associative array or retrieve a specific key. Overrides StreamInterface:: |
|
Stream:: |
public | function |
Get the size of the stream if known. Overrides StreamInterface:: |
|
Stream:: |
public | function |
Returns whether or not the stream is readable. Overrides StreamInterface:: |
|
Stream:: |
public | function |
Returns whether or not the stream is seekable. Overrides StreamInterface:: |
|
Stream:: |
public | function |
Returns whether or not the stream is writable. Overrides StreamInterface:: |
|
Stream:: |
public | function |
Read data from the stream. Overrides StreamInterface:: |
|
Stream:: |
public | function |
Seek to the beginning of the stream. Overrides StreamInterface:: |
|
Stream:: |
public | function |
Seek to a position in the stream. Overrides StreamInterface:: |
|
Stream:: |
public | function |
Returns the current position of the file read/write pointer Overrides StreamInterface:: |
|
Stream:: |
public | function |
Write data to the stream. Overrides StreamInterface:: |
|
Stream:: |
public | function | ||
Stream:: |
public | function |
Reads all data from the stream into a string, from the beginning to end. Overrides StreamInterface:: |