public function setStreamOptions($options = array()) { // Merge the arrays $this->streamOptions = array_merge($this->streamOptions, $options); $this->updateStreamOptions(); }