| Total Complexity | 4 |
| Total Lines | 45 |
| Duplicated Lines | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 13 | class InstagramStream |
||
| 14 | { |
||
| 15 | /** |
||
| 16 | * @var resource Context stream resource instance |
||
| 17 | */ |
||
| 18 | protected $stream; |
||
| 19 | |||
| 20 | /** |
||
| 21 | * @var array Response headers from the stream wrapper |
||
| 22 | */ |
||
| 23 | protected $responseHeaders = []; |
||
| 24 | |||
| 25 | /** |
||
| 26 | * Make a new context stream reference instance |
||
| 27 | * |
||
| 28 | * @param array $options |
||
| 29 | */ |
||
| 30 | public function streamContextCreate(array $options) |
||
| 31 | { |
||
| 32 | $this->stream = stream_context_create($options); |
||
| 33 | } |
||
| 34 | |||
| 35 | /** |
||
| 36 | * The response headers from the stream wrapper |
||
| 37 | * |
||
| 38 | * @return array |
||
| 39 | */ |
||
| 40 | public function getResponseHeaders() |
||
| 43 | } |
||
| 44 | |||
| 45 | /** |
||
| 46 | * Send a stream wrapped request |
||
| 47 | * |
||
| 48 | * @param string $url |
||
| 49 | * |
||
| 50 | * @return mixed |
||
| 51 | */ |
||
| 52 | public function fileGetContents($url) |
||
| 60 |