public function setStreamOptions($options) { $this->params['stream_context_options'] = $options; return $this; }