php-parser/lib/PHPParser/Node/Stmt/PropertyProperty.php

25 lines
740 B
PHP
Raw Normal View History

2011-06-05 18:40:04 +02:00
<?php
/**
2011-10-15 19:28:15 +02:00
* @property string $name Name
* @property null|PHPParser_Node_Expr $default Default
2011-06-05 18:40:04 +02:00
*/
class PHPParser_Node_Stmt_PropertyProperty extends PHPParser_Node_Stmt
{
2011-10-15 19:28:15 +02:00
/**
* Constructs a class property node.
*
* @param string $name Name
* @param null|PHPParser_Node_Expr $default Default value
* @param array $attributes Additional attributes
2011-10-15 19:28:15 +02:00
*/
public function __construct($name, PHPParser_Node_Expr $default = null, array $attributes = array()) {
2011-10-15 19:28:15 +02:00
parent::__construct(
array(
'name' => $name,
'default' => $default,
),
$attributes
2011-10-15 19:28:15 +02:00
);
}
2011-06-05 18:40:04 +02:00
}