/** * Set defaults * * @param array|null $options */ public function __construct(array $options = NULL) { parent::__construct($options); if (isset($options['version'])) { // Set the Google API version $this->version = (int) $options['version']; } if (isset($options['format'])) { $this->format = trim($options['format'], '.'); } }
public function __construct(array $options = NULL) { parent::__construct($options); if (isset($options['version'])) { // Set the Blogger API version $this->version = (int) $options['version']; } if (isset($options['format'])) { // Set the response format $this->format = trim($options['format']); } }