public static function checkImplement($class, string $interface){
            $ref = new \ReflectionClass($class);
            $names = $ref->getInterfaceNames();
            if(in_array($interface, $names)){
                return true;
            }else{
                return false;
            }
        }