the whole shebang
This commit is contained in:
41
vendor/nikic/php-parser/lib/PHPParser/Node/Stmt/Property.php
vendored
Normal file
41
vendor/nikic/php-parser/lib/PHPParser/Node/Stmt/Property.php
vendored
Normal file
@@ -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