Inheritance: extends PHPCfg\Op
Exemple #1
0
 public function __construct(Variable $cond, Block $if, Block $else, array $attributes = array())
 {
     parent::__construct($attributes);
     $this->if = $if;
     $this->else = $else;
     $this->cond = $cond;
 }
Exemple #2
0
 public function __construct($name, array $extends, Block $stmts, array $attributes = array())
 {
     parent::__construct($attributes);
     $this->name = $name;
     $this->extends = $extends;
     $this->stmts = $stmts;
 }
Exemple #3
0
 public function __construct(Operand $cond, array $cases, array $targets, array $attributes = array())
 {
     parent::__construct($attributes);
     $this->cond = $cond;
     $this->cases = $cases;
     $this->targets = $targets;
 }
Exemple #4
0
 public function __construct(Operand $cond, Block $if, Block $else, array $attributes = [])
 {
     parent::__construct($attributes);
     $this->if = $if;
     $this->else = $else;
     $this->cond = $this->addReadRef($cond);
 }
Exemple #5
0
 public function __construct(Operand $cond, array $cases, array $targets, Block $default, array $attributes = [])
 {
     parent::__construct($attributes);
     $this->cond = $this->addReadRef($cond);
     $this->cases = $cases;
     $this->targets = $targets;
     $this->default = $default;
 }
Exemple #6
0
 public function __construct($name, array $params, $byRef, $returnType, Block $stmts = null, array $attributes = array())
 {
     parent::__construct($attributes);
     $this->name = $name;
     $this->params = $params;
     $this->byRef = (bool) $byRef;
     $this->returnType = $returnType;
     $this->stmts = $stmts;
 }
Exemple #7
0
 public function __construct($name, $visiblity, $static, Operand $defaultVar = null, Block $defaultBlock = null, array $attributes = array())
 {
     parent::__construct($attributes);
     $this->name = $name;
     $this->visiblity = $visiblity;
     $this->static = $static;
     $this->defaultVar = $defaultVar;
     $this->defaultBlock = $defaultBlock;
 }
Exemple #8
0
 public function __construct($name, array $params, $byRef, $returnType, Block $stmts = null, array $attributes = [])
 {
     parent::__construct($attributes);
     $this->name = $this->addReadRef($name);
     $this->params = $params;
     foreach ($params as $param) {
         $this->paramVars[] = $this->addReadRef($param->result);
     }
     $this->byRef = (bool) $byRef;
     $this->returnType = $returnType;
     $this->stmts = $stmts;
 }
Exemple #9
0
 public function __construct($name, Block $stmts, array $attributes = [])
 {
     parent::__construct($attributes);
     $this->name = $this->addReadRef($name);
     $this->stmts = $stmts;
 }
Exemple #10
0
 public function __construct(Func $func, array $attributes = [])
 {
     parent::__construct($attributes);
     $this->func = $func;
 }
Exemple #11
0
 public function __construct(Block $target, array $attributes = array())
 {
     parent::__construct($attributes);
     $this->target = $target;
 }