scratch – Blame information for rev 87

Subversion Repositories:
Rev:
Rev Author Line No. Line
87 office 1 <?php
2 namespace GuzzleHttp\Stream;
3  
4 /**
5 * Represents a stream that contains metadata
6 */
7 interface MetadataStreamInterface extends StreamInterface
8 {
9 /**
10 * Get stream metadata as an associative array or retrieve a specific key.
11 *
12 * The keys returned are identical to the keys returned from PHP's
13 * stream_get_meta_data() function.
14 *
15 * @param string $key Specific metadata to retrieve.
16 *
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
22 */
23 public function getMetadata($key = null);
24 }