mirror of
https://github.com/phabelio/PHP-Parser.git
synced 2024-12-13 09:37:21 +01:00
26 lines
713 B
PHP
26 lines
713 B
PHP
<?php
|
|
|
|
/**
|
|
* @property string $name Name
|
|
* @property PHPParser_Node[] $stmts Statements
|
|
*/
|
|
class PHPParser_Node_Stmt_Trait extends PHPParser_Node_Stmt
|
|
{
|
|
/**
|
|
* Constructs a trait node.
|
|
*
|
|
* @param string $name Name
|
|
* @param PHPParser_Node[] $stmts Statements
|
|
* @param int $line Line
|
|
* @param null|string $docComment Nearest doc comment
|
|
*/
|
|
public function __construct($name, array $stmts = array(), $line = -1, $docComment = null) {
|
|
parent::__construct(
|
|
array(
|
|
'name' => $name,
|
|
'stmts' => $stmts,
|
|
),
|
|
$line, $docComment
|
|
);
|
|
}
|
|
} |