the whole shebang
This commit is contained in:
1 parent
7f74c0613e
commit
ab1334c0cf
3686 files changed
+496409
-1
No files matched your search
@@ -0,0 +1,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);
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user