PluginProbe
BetterDocs – AI Documentation, Knowledge Base, MCP Server, Docs, Wikis, FAQ & Chatbot / 3.3.4
BetterDocs – AI Documentation, Knowledge Base, MCP Server, Docs, Wikis, FAQ & Chatbot v3.3.4
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 3.5.2 All 199 releases
betterdocs / includes / Dependencies / PhpParser / Node.php

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

88 lines 1.8 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;
4
5 interface Node
6 {
7 /**
8 * Gets the type of the node.
9 *
10 * @return string Type of the node
11 */
12 public function getType();
13
14 /**
15 * Gets the names of the sub nodes.
16 *
17 * @return array Names of sub nodes
18 */
19 public function getSubNodeNames();
20
21 /**
22 * Gets line the node started in.
23 *
24 * @return int Line
25 */
26 public function getLine();
27
28 /**
29 * Sets line the node started in.
30 *
31 * @param int $line Line
32 *
33 * @deprecated
34 */
35 public function setLine($line);
36
37 /**
38 * Gets the doc comment of the node.
39 *
40 * The doc comment has to be the last comment associated with the node.
41 *
42 * @return null|Comment\Doc Doc comment object or null
43 */
44 public function getDocComment();
45
46 /**
47 * Sets the doc comment of the node.
48 *
49 * This will either replace an existing doc comment or add it to the comments array.
50 *
51 * @param Comment\Doc $docComment Doc comment to set
52 */
53 public function setDocComment(Comment\Doc $docComment);
54
55 /**
56 * Sets an attribute on a node.
57 *
58 * @param string $key
59 * @param mixed $value
60 */
61 public function setAttribute($key, $value);
62
63 /**
64 * Returns whether an attribute exists.
65 *
66 * @param string $key
67 *
68 * @return bool
69 */
70 public function hasAttribute($key);
71
72 /**
73 * Returns the value of an attribute.
74 *
75 * @param string $key
76 * @param mixed $default
77 *
78 * @return mixed
79 */
80 public function &getAttribute($key, $default = null);
81
82 /**
83 * Returns all attributes for the given node.
84 *
85 * @return array
86 */
87 public function getAttributes();
88 }