public function getStreamContext() { if (!$this->_context) { $this->_context = stream_context_create(); } return $this->_context; }