Official.php 630 Bytes
<?php
/**
 * Created by PhpStorm.
 * User: Hanson
 * Date: 2016/12/13
 * Time: 20:56
 */

namespace Hanson\Vbot\Collections;


use Illuminate\Support\Collection;

class Official extends Collection
{

    /**
     * @var Official
     */
    static $instance = null;

    /**
     * create a single instance
     *
     * @return Official
     */
    public static function getInstance()
    {
        if(static::$instance === null){
            static::$instance = new Official();
        }

        return static::$instance;
    }

    public function isOfficial($verifyFlag)
    {
        return ($verifyFlag & 8) != 0;
    }

}