public function StreamInterface::getMetadata in Zircon Profile 8
Same name and namespace in other branches
- 8.0 vendor/psr/http-message/src/StreamInterface.php \Psr\Http\Message\StreamInterface::getMetadata()
Get stream metadata as an associative array or retrieve a specific key.
The keys returned are identical to the keys returned from PHP's stream_get_meta_data() function.
@link http://php.net/manual/en/function.stream-get-meta-data.php
Parameters
string $key Specific metadata to retrieve.:
Return value
array|mixed|null Returns an associative array if no key is provided. Returns a specific key value if a key is provided and the value is found, or null if the key is not found.
8 methods override StreamInterface::getMetadata()
- AppendStream::getMetadata in vendor/
guzzlehttp/ psr7/ src/ AppendStream.php - Get stream metadata as an associative array or retrieve a specific key.
- BufferStream::getMetadata in vendor/
guzzlehttp/ psr7/ src/ BufferStream.php - Get stream metadata as an associative array or retrieve a specific key.
- FnStream::getMetadata in vendor/
guzzlehttp/ psr7/ src/ FnStream.php - Get stream metadata as an associative array or retrieve a specific key.
- PumpStream::getMetadata in vendor/
guzzlehttp/ psr7/ src/ PumpStream.php - Get stream metadata as an associative array or retrieve a specific key.
- RelativeStream::getMetadata in vendor/
zendframework/ zend-diactoros/ src/ RelativeStream.php - Get stream metadata as an associative array or retrieve a specific key.
File
- vendor/
psr/ http-message/ src/ StreamInterface.php, line 157
Class
- StreamInterface
- Describes a data stream.
Namespace
Psr\Http\MessageCode
public function getMetadata($key = null);