Skip to content

Commit 21134e1

Browse files
committed
Add MultiCurl::setOpts()
1 parent 6c542c4 commit 21134e1

File tree

1 file changed

+13
-0
lines changed

1 file changed

+13
-0
lines changed

src/Curl/MultiCurl.php

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -482,6 +482,19 @@ public function setOpt($option, $value)
482482
$this->options[$option] = $value;
483483
}
484484

485+
/**
486+
* Set Opts
487+
*
488+
* @access public
489+
* @param $options
490+
*/
491+
public function setOpts($options)
492+
{
493+
foreach ($options as $option => $value) {
494+
$this->setOpt($option, $value);
495+
}
496+
}
497+
485498
/**
486499
* Set Referer
487500
*

0 commit comments

Comments
 (0)