Fragen\GitHub_Updater\Bitbucket_API::__construct PHP Метод

__construct() публичный Метод

Constructor.
public __construct ( object $type )
$type object
    public function __construct($type)
    {
        parent::$hours = 12;
        $this->type = $type;
        $this->response = $this->get_transient();
        $this->load_hooks();
        if (!isset(self::$options['bitbucket_username'])) {
            self::$options['bitbucket_username'] = null;
        }
        if (!isset(self::$options['bitbucket_password'])) {
            self::$options['bitbucket_password'] = null;
        }
        add_site_option('github_updater', self::$options);
    }