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

@param mixed $class
@param string $interface

@return void
Check the class implement