/** * {@inheritdoc} * * @param array $options */ public function __construct(array $options = array()) { if (!isset($options['browscap']) && false !== ($browsCapLocation = ini_get('browscap')) && '' != trim($browsCapLocation)) { $options['browscap'] = trim($browsCapLocation); } parent::__construct($options); }
/** * {@inheritdoc} * * @param array $options * @return Gass\BotInfo\UserAgentStringInfo */ public function setOptions(array $options) { foreach ($options as $name => $value) { $this->getOption($name); } return parent::setOptions($options); }