public function __construct($options = array()) { parent::__construct(sprintf(static::PROD_ID, static::VERSION)); $this->setOptions($options); if (!isset($this->options['log'])) { $this->options['log'] = new Logger('php://stderr'); } $this->log = $this->options['log']; if (isset($this->options['calendar']['name'])) { $this->setName($this->options['calendar']['name']); } if (isset($this->options['calendar']['description'])) { $this->setDescription($this->options['calendar']['description']); } if (isset($this->options['calendar']['timezone'])) { $this->setTimezone($this->options['calendar']['timezone']); } }