mirror of
https://github.com/phabelio/PHP-Parser.git
synced 2024-12-12 09:09:41 +01:00
41 lines
1.3 KiB
PHP
41 lines
1.3 KiB
PHP
<?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);
|
|
}
|
|
} |