mirror of
https://github.com/danog/PHP-Parser.git
synced 2024-12-04 18:28:25 +01:00
26 lines
804 B
PHP
26 lines
804 B
PHP
<?php
|
|
|
|
/**
|
|
* @property string $name Name
|
|
* @property null|PHPParser_Node_Expr $default Default
|
|
*/
|
|
class PHPParser_Node_Stmt_PropertyProperty extends PHPParser_Node_Stmt
|
|
{
|
|
/**
|
|
* Constructs a class property node.
|
|
*
|
|
* @param string $name Name
|
|
* @param null|PHPParser_Node_Expr $default Default value
|
|
* @param int $line Line
|
|
* @param null|string $docComment Nearest doc comment
|
|
*/
|
|
public function __construct($name, PHPParser_Node_Expr $default = null, $line = -1, $docComment = null) {
|
|
parent::__construct(
|
|
array(
|
|
'name' => $name,
|
|
'default' => $default,
|
|
),
|
|
$line, $docComment
|
|
);
|
|
}
|
|
} |