2
namespace GuzzleHttp\Stream;
5
* Represents a stream that contains metadata
7
interface MetadataStreamInterface extends StreamInterface
10
* Get stream metadata as an associative array or retrieve a specific key.
12
* The keys returned are identical to the keys returned from PHP's
13
* stream_get_meta_data() function.
15
* @param string $key Specific metadata to retrieve.
17
* @return array|mixed|null Returns an associative array if no key is
18
* no key is provided. Returns a specific key
19
* value if a key is provided and the value is
20
* found, or null if the key is not found.
21
* @see http://php.net/manual/en/function.stream-get-meta-data.php
23
public function getMetadata($key = null);