mirror of
https://github.com/phabelio/PHP-Parser.git
synced 2024-12-03 09:57:51 +01:00
25 lines
657 B
PHP
25 lines
657 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 array $attributes Additional attributes
|
|
*/
|
|
public function __construct($name, array $stmts = array(), array $attributes = array()) {
|
|
parent::__construct(
|
|
array(
|
|
'name' => $name,
|
|
'stmts' => $stmts,
|
|
),
|
|
$attributes
|
|
);
|
|
}
|
|
} |