function StaticReflectionParser::getUseStatements

Same name in other branches
  1. 10 core/lib/Drupal/Component/Annotation/Doctrine/StaticReflectionParser.php \Drupal\Component\Annotation\Doctrine\StaticReflectionParser::getUseStatements()
  2. 11.x core/lib/Drupal/Component/Annotation/Doctrine/StaticReflectionParser.php \Drupal\Component\Annotation\Doctrine\StaticReflectionParser::getUseStatements()

Gets the use statements from this file.

Return value

string[]

File

core/lib/Drupal/Component/Annotation/Doctrine/StaticReflectionParser.php, line 301

Class

StaticReflectionParser
Parses a file for namespaces/use/class declarations.

Namespace

Drupal\Component\Annotation\Doctrine

Code

public function getUseStatements() {
    $this->parse();
    return $this->useStatements;
}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.