Update v1.0.6
This commit is contained in:
@@ -1,34 +0,0 @@
|
||||
<?php
|
||||
|
||||
namespace PhpParser\Node\Stmt\TraitUseAdaptation;
|
||||
|
||||
use PhpParser\Node;
|
||||
|
||||
class Alias extends Node\Stmt\TraitUseAdaptation
|
||||
{
|
||||
/** @var null|int New modifier */
|
||||
public $newModifier;
|
||||
/** @var null|string New name */
|
||||
public $newName;
|
||||
|
||||
/**
|
||||
* Constructs a trait use precedence adaptation node.
|
||||
*
|
||||
* @param null|Node\Name $trait Trait name
|
||||
* @param string $method Method name
|
||||
* @param null|int $newModifier New modifier
|
||||
* @param null|string $newName New name
|
||||
* @param array $attributes Additional attributes
|
||||
*/
|
||||
public function __construct($trait, $method, $newModifier, $newName, array $attributes = array()) {
|
||||
parent::__construct(null, $attributes);
|
||||
$this->trait = $trait;
|
||||
$this->method = $method;
|
||||
$this->newModifier = $newModifier;
|
||||
$this->newName = $newName;
|
||||
}
|
||||
|
||||
public function getSubNodeNames() {
|
||||
return array('trait', 'method', 'newModifier', 'newName');
|
||||
}
|
||||
}
|
@@ -1,30 +0,0 @@
|
||||
<?php
|
||||
|
||||
namespace PhpParser\Node\Stmt\TraitUseAdaptation;
|
||||
|
||||
use PhpParser\Node;
|
||||
|
||||
class Precedence extends Node\Stmt\TraitUseAdaptation
|
||||
{
|
||||
/** @var Node\Name[] Overwritten traits */
|
||||
public $insteadof;
|
||||
|
||||
/**
|
||||
* Constructs a trait use precedence adaptation node.
|
||||
*
|
||||
* @param Node\Name $trait Trait name
|
||||
* @param string $method Method name
|
||||
* @param Node\Name[] $insteadof Overwritten traits
|
||||
* @param array $attributes Additional attributes
|
||||
*/
|
||||
public function __construct(Node\Name $trait, $method, array $insteadof, array $attributes = array()) {
|
||||
parent::__construct(null, $attributes);
|
||||
$this->trait = $trait;
|
||||
$this->method = $method;
|
||||
$this->insteadof = $insteadof;
|
||||
}
|
||||
|
||||
public function getSubNodeNames() {
|
||||
return array('trait', 'method', 'insteadof');
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user