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

26 lines
713 B
PHP
Raw Normal View History

2011-10-30 12:03:29 +01:00
<?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
);
}
}