public static function classHasMethod($method, $class) {
        $methods = self::classMethods($class);

        if (!in_array($method, $methods)) {
          return false;
        }

        return true;
    }
public static function classHasMethod($method, $class) {
        $methods = self::classMethods($class);

        if (!in_array($method, $methods)) {
          return false;
        }

        return true;
    }
public static function classHasMethod ( $ method , $ class ) { $ methods = self :: classMethods ( $ class ) ; if ( ! in_array ( $ method , $ methods ) ) { return false ; } return true ; }
Check if class has method

@param string $method
@param object|string $class
@return boolean
Check if class has method