/**
  * Initializes the reflector using the function statement object of
  * PHP-Parser.
  *
  * @param \PHPParser_Node_Stmt $node Function object coming from PHP-Parser.
  */
 public function __construct(\PHPParser_Node_Stmt $node)
 {
     parent::__construct($node);
     /** @var \PHPParser_Node_Param $param  */
     foreach ($node->params as $param) {
         $reflector = new FunctionReflector\ArgumentReflector($param);
         $this->arguments[$reflector->getName()] = $reflector;
     }
 }
 /**
  * Initializes the reflector using the function statement object of
  * PHP-Parser.
  *
  * @param \PhpParser\Node\Stmt $node    Function object coming from PHP-Parser.
  * @param Context             $context The context in which the node occurs.
  */
 public function __construct(\PhpParser\Node\Stmt $node, Context $context)
 {
     parent::__construct($node, $context);
     /** @var \PhpParser\Node\Param $param  */
     foreach ($node->params as $param) {
         $reflector = new FunctionReflector\ArgumentReflector($param, $context);
         $this->arguments[$reflector->getName()] = $reflector;
     }
 }
Esempio n. 3
0
 public function __construct(PHPParser_Node_Stmt_Property $property, Context $context, PHPParser_Node_Stmt_PropertyProperty $node)
 {
     parent::__construct($node, $context);
     $this->property = $property;
 }
Esempio n. 4
0
 /**
  * Registers the Constant Statement and Node with this reflector.
  *
  * @param PHPParser_Node_Stmt_Const $stmt
  * @param Context                   $context
  * @param PHPParser_Node_Const      $node
  */
 public function __construct(PHPParser_Node_Stmt_ClassConst $stmt, Context $context, PHPParser_Node_Const $node)
 {
     BaseReflector::__construct($node, $context);
     $this->constant = $stmt;
 }
 public function __construct(\PHPParser_Node_Stmt_Property $property, \PHPParser_Node_Stmt_PropertyProperty $node)
 {
     parent::__construct($node);
     $this->property = $property;
 }
 /**
  * Registers the Constant Statement and Node with this reflector.
  *
  * @param ConstStmt $stmt
  * @param Const_ $node
  */
 public function __construct(ConstStmt $stmt, Context $context, Const_ $node)
 {
     parent::__construct($node, $context);
     $this->constant = $stmt;
 }
 public function __construct(Property $property, Context $context, PropertyProperty $node)
 {
     parent::__construct($node, $context);
     $this->property = $property;
 }
Esempio n. 8
0
 /**
  * Registers the Constant Statement and Node with this reflector.
  *
  * @param PHPParser_Node_Stmt_Const $stmt
  * @param PHPParser_Node_Const      $node
  */
 public function __construct(PHPParser_Node_Stmt_Const $stmt, Context $context, PHPParser_Node_Const $node)
 {
     parent::__construct($node, $context);
     $this->constant = $stmt;
 }
 /**
  * Registers the Constant Statement and Node with this reflector.
  *
  * @param ClassConst $stmt
  * @param Context $context
  * @param Const_ $node
  */
 public function __construct(ClassConst $stmt, Context $context, Const_ $node)
 {
     BaseReflector::__construct($node, $context);
     $this->constant = $stmt;
 }