1234567891011121314151617181920212223242526272829303132333435363738394041 |
- <?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);
- }
- }
|