Nextrek
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
|
<?php
/**
* @property int $type Modifiers
* @property PHPParser_Node_Stmt_PropertyProperty[] $props Properties
*/
class PHPParser_Node_Stmt_Property extends PHPParser_Node_Stmt
{
/**
* Constructs a class property list node.
*
* @param int $type Modifiers
* @param PHPParser_Node_Stmt_PropertyProperty[] $props Properties
* @param array $attributes Additional attributes
*/
public function __construct($type, array $props, array $attributes = array()) {
parent::__construct(
array(
'type' => $type,
'props' => $props,
),
$attributes
);
}
public function isPublic() {
return (bool) ($this->type & PHPParser_Node_Stmt_Class::MODIFIER_PUBLIC);
}
public function isProtected() {
return (bool) ($this->type & PHPParser_Node_Stmt_Class::MODIFIER_PROTECTED);
}
public function isPrivate() {
return (bool) ($this->type & PHPParser_Node_Stmt_Class::MODIFIER_PRIVATE);
}
public function isStatic() {
return (bool) ($this->type & PHPParser_Node_Stmt_Class::MODIFIER_STATIC);
}
}
|
Revision |
Author |
Commited |
Message |
1464
|
MOliva
|
Tue 13 Oct, 2020 11:16:56 +0000 |
|