Esempio n. 1
0
 /**
  * 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;
 }
Esempio n. 2
0
 /**
  * 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;
 }
Esempio n. 3
0
 /**
  * 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(array('trait' => $trait, 'method' => $method, 'insteadof' => $insteadof), $attributes);
 }
Esempio n. 4
0
 /**
  * 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(array('trait' => $trait, 'method' => $method, 'newModifier' => $newModifier, 'newName' => $newName), $attributes);
 }