public function __construct($type)
{
parent::$hours = 12;
$this->type = $type;
$this->response = $this->get_transient();
if (!isset(self::$options['gitlab_access_token'])) {
self::$options['gitlab_access_token'] = null;
}
if (!isset(self::$options['gitlab_enterprise_token'])) {
self::$options['gitlab_enterprise_token'] = null;
}
if (empty(self::$options['gitlab_access_token']) || empty(self::$options['gitlab_enterprise_token']) && !empty($type->enterprise)) {
Messages::instance()->create_error_message('gitlab');
}
add_site_option('github_updater', self::$options);
}