public function importsClass($class_name = NULL) {
    if ($this->useFunction || $this->useConst) {
      return FALSE;
    }
    if ($class_name) {
      foreach ($this->getDeclarations() as $declaration) {
        if ($declaration->getName()->getPath() === $class_name) {
          return TRUE;
        }
      }
      return FALSE;
    }
    else {
      return TRUE;
    }
  }
public function importsClass($class_name = NULL) {
    if ($this->useFunction || $this->useConst) {
      return FALSE;
    }
    if ($class_name) {
      foreach ($this->getDeclarations() as $declaration) {
        if ($declaration->getName()->getPath() === $class_name) {
          return TRUE;
        }
      }
      return FALSE;
    }
    else {
      return TRUE;
    }
  }
public function importsClass ( $ class_name = NULL ) { if ( $ this -> useFunction || $ this -> useConst ) { return FALSE ; } if ( $ class_name ) { foreach ( $ this -> getDeclarations ( ) as $ declaration ) { if ( $ declaration -> getName ( ) -> getPath ( ) === $ class_name ) { return TRUE ; } } return FALSE ; } else { return TRUE ; } }
Test whether use declaration imports a class.

@param string|NULL $class_name
(Optional) Class name to check if being imported by use statement.

@return bool
TRUE if this use declaration imports class.
Test whether use declaration imports a class .