1
0
mirror of https://github.com/danog/PHP-Parser.git synced 2024-12-03 17:57:59 +01:00
PHP-Parser/lib/PhpParser/Node/Stmt/Use_.php

33 lines
756 B
PHP
Raw Normal View History

2011-06-05 18:40:04 +02:00
<?php
namespace PhpParser\Node\Stmt;
use PhpParser\Node\Stmt;
2011-06-05 18:40:04 +02:00
/**
* @property int $type Type of alias
* @property UseUse[] $uses Aliases
2011-06-05 18:40:04 +02:00
*/
class Use_ extends Stmt
2011-06-05 18:40:04 +02:00
{
const TYPE_NORMAL = 1;
const TYPE_FUNCTION = 2;
const TYPE_CONSTANT = 3;
/**
2011-10-15 19:28:15 +02:00
* Constructs an alias (use) list node.
*
* @param UseUse[] $uses Aliases
* @param int $type Type of alias
* @param array $attributes Additional attributes
*/
public function __construct(array $uses, $type = self::TYPE_NORMAL, array $attributes = array()) {
parent::__construct(
array(
'type' => $type,
'uses' => $uses,
),
$attributes
);
}
2011-06-05 18:40:04 +02:00
}