PHPCfg\Op\Stmt\Switch_::__construct PHP 메소드

__construct() 공개 메소드

public __construct ( Operand $cond, array $cases, array $targets, Block $default, array $attributes = [] )
$cond PHPCfg\Operand
$cases array
$targets array
$default PHPCfg\Block
$attributes array
    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;
    }