PluginProbe
BetterDocs – AI Documentation, Knowledge Base, MCP Server, Docs, Wikis, FAQ & Chatbot / 3.8.9
BetterDocs – AI Documentation, Knowledge Base, MCP Server, Docs, Wikis, FAQ & Chatbot v3.8.9
4.9.2 4.9.1 4.9.0 4.8.2 4.8.1 4.8.0 4.7.0 4.6.2 4.6.1 4.6.0 4.5.6 4.5.5 4.5.4 4.5.3 4.5.2 4.5.1 4.5.0 4.4.1 4.4.0 3.3.4 3.4.0 3.4.1 3.4.2 3.5.0 3.5.1 All 200 releases
betterdocs / includes / Dependencies / PhpParser / Node / Stmt / Use_.php

Use_.php in BetterDocs – AI Documentation, Knowledge Base, MCP Server, Docs, Wikis, FAQ & Chatbot 3.8.9, at includes/Dependencies/PhpParser/Node/Stmt/Use_.php

44 lines 1.3 KB
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 <?php
2
3 namespace WPDeveloper\BetterDocs\Dependencies\PhpParser\Node\Stmt;
4
5 use WPDeveloper\BetterDocs\Dependencies\PhpParser\Node\Stmt;
6
7 class Use_ extends Stmt
8 {
9 /**
10 * Unknown type. Both Stmt\Use_ / Stmt\GroupUse and Stmt\UseUse have a $type property, one of them will always be
11 * TYPE_UNKNOWN while the other has one of the three other possible types. For normal use statements the type on the
12 * Stmt\UseUse is unknown. It's only the other way around for mixed group use declarations.
13 */
14 const TYPE_UNKNOWN = 0;
15 /** Class or namespace import */
16 const TYPE_NORMAL = 1;
17 /** Function import */
18 const TYPE_FUNCTION = 2;
19 /** Constant import */
20 const TYPE_CONSTANT = 3;
21
22 /** @var int Type of alias */
23 public $type;
24 /** @var UseUse[] Aliases */
25 public $uses;
26
27 /**
28 * Constructs an alias (use) list node.
29 *
30 * @param UseUse[] $uses Aliases
31 * @param int $type Type of alias
32 * @param array $attributes Additional attributes
33 */
34 public function __construct(array $uses, $type = self::TYPE_NORMAL, array $attributes = array()) {
35 parent::__construct($attributes);
36 $this->type = $type;
37 $this->uses = $uses;
38 }
39
40 public function getSubNodeNames() {
41 return array('type', 'uses');
42 }
43 }
44