mirror of
https://github.com/danog/PHP-Parser.git
synced 2024-12-02 09:17:58 +01:00
30 lines
711 B
PHP
30 lines
711 B
PHP
|
<?php
|
||
|
|
||
|
namespace PhpParser\Node\Expr;
|
||
|
|
||
|
use PhpParser\Node\Name;
|
||
|
use PhpParser\Node\Expr;
|
||
|
|
||
|
/**
|
||
|
* @property Name|Expr $class Class name
|
||
|
* @property string|Expr $name Property name
|
||
|
*/
|
||
|
class StaticPropertyFetch extends Expr
|
||
|
{
|
||
|
/**
|
||
|
* Constructs a static property fetch node.
|
||
|
*
|
||
|
* @param Name|Expr $class Class name
|
||
|
* @param string|Expr $name Property name
|
||
|
* @param array $attributes Additional attributes
|
||
|
*/
|
||
|
public function __construct($class, $name, array $attributes = array()) {
|
||
|
parent::__construct(
|
||
|
array(
|
||
|
'class' => $class,
|
||
|
'name' => $name
|
||
|
),
|
||
|
$attributes
|
||
|
);
|
||
|
}
|
||
|
}
|