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 / Property.php

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

52 lines 1.4 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;
6
7 class Property extends Node\Stmt
8 {
9 /** @var int Modifiers */
10 public $flags;
11 /** @var PropertyProperty[] Properties */
12 public $props;
13
14 /** @deprecated Use $flags instead */
15 public $type;
16
17 /**
18 * Constructs a class property list node.
19 *
20 * @param int $flags Modifiers
21 * @param PropertyProperty[] $props Properties
22 * @param array $attributes Additional attributes
23 */
24 public function __construct($flags, array $props, array $attributes = array()) {
25 parent::__construct($attributes);
26 $this->flags = $flags;
27 $this->type = $flags;
28 $this->props = $props;
29 }
30
31 public function getSubNodeNames() {
32 return array('flags', 'props');
33 }
34
35 public function isPublic() {
36 return ($this->flags & Class_::MODIFIER_PUBLIC) !== 0
37 || ($this->flags & Class_::VISIBILITY_MODIFIER_MASK) === 0;
38 }
39
40 public function isProtected() {
41 return (bool) ($this->flags & Class_::MODIFIER_PROTECTED);
42 }
43
44 public function isPrivate() {
45 return (bool) ($this->flags & Class_::MODIFIER_PRIVATE);
46 }
47
48 public function isStatic() {
49 return (bool) ($this->flags & Class_::MODIFIER_STATIC);
50 }
51 }
52