public function getUseDeclarations() {
    $declarations = [];
    /** @var \Pharborist\Namespaces\UseDeclarationBlockNode[] $use_blocks */
    $use_blocks = $this->children(Filter::isInstanceOf('\Pharborist\Namespaces\UseDeclarationBlockNode'));
    foreach ($use_blocks as $use_block) {
      foreach ($use_block->getDeclarationStatements() as $use_statement) {
        $declarations = array_merge($declarations, $use_statement->getDeclarations()->toArray());
      }
    }
    return new NodeCollection($declarations, FALSE);
  }
public function getUseDeclarations() {
    $declarations = [];
    /** @var \Pharborist\Namespaces\UseDeclarationBlockNode[] $use_blocks */
    $use_blocks = $this->children(Filter::isInstanceOf('\Pharborist\Namespaces\UseDeclarationBlockNode'));
    foreach ($use_blocks as $use_block) {
      foreach ($use_block->getDeclarationStatements() as $use_statement) {
        $declarations = array_merge($declarations, $use_statement->getDeclarations()->toArray());
      }
    }
    return new NodeCollection($declarations, FALSE);
  }
public function getUseDeclarations ( ) { $ declarations = [ ] ; /** @var \Pharborist\Namespaces\UseDeclarationBlockNode[] $use_blocks */ $ use_blocks = $ this -> children ( Filter :: isInstanceOf ( '\Pharborist\Namespaces\UseDeclarationBlockNode' ) ) ; foreach ( $ use_blocks as $ use_block ) { foreach ( $ use_block -> getDeclarationStatements ( ) as $ use_statement ) { $ declarations = array_merge ( $ declarations , $ use_statement -> getDeclarations ( ) -> toArray ( ) ) ; } } return new NodeCollection ( $ declarations , FALSE ) ; }
Get the use declarations of this statement block.

@return NodeCollection|UseDeclarationNode[]
Use declarations.
Get the use declarations of this statement block .