public static function isClass($class_name) {
    $class_names = func_get_args();

    return function ($node) use ($class_names) {
      if ($node instanceof ClassNode) {
        return in_array($node->getName()->getText(), $class_names, TRUE);
      }
      return FALSE;
    };
  }
public static function isClass($class_name) {
    $class_names = func_get_args();

    return function ($node) use ($class_names) {
      if ($node instanceof ClassNode) {
        return in_array($node->getName()->getText(), $class_names, TRUE);
      }
      return FALSE;
    };
  }
public static function isClass ( $ class_name ) { $ class_names = func_get_args ( ) ; return function ( $ node ) use ( $ class_names ) { if ( $ node instanceof ClassNode ) { return in_array ( $ node -> getName ( ) -> getText ( ) , $ class_names , TRUE ) ; } return FALSE ; } ; }
Callback to filter for specific class declaration.

@param string $class_name ...
At least one class name to search for.

@return callable
Callback to filter for specific class declaration .