/**
* Instantiates the collection, sets param members as properties
*
* @param array $options Options with which to configure this collection
*/
public function __construct(array $options = [])
{
parent::__construct($options);
if (isset($options['environment'])) {
$this->owner = $this->environment = $options['environment'];
} elseif (isset($options['organization'])) {
$this->owner = $this->organization = $options['organization'];
} elseif (isset($options['site'])) {
$this->owner = $this->site = $options['site'];
} elseif (isset($options['user'])) {
$this->owner = $this->user = $options['user'];
}
}