Jyxo\Spl\Object::hasMethod PHP Method

hasMethod() private static method

Returns if a class has the given method defined.
private static hasMethod ( string $class, string $method ) : boolean
$class string Class name
$method string Method name
return boolean
    private static function hasMethod(string $class, string $method) : bool
    {
        static $cache;
        if (!isset($cache[$class])) {
            $cache[$class] = array_flip(get_class_methods($class));
        }
        return isset($cache[$class][$method]);
    }