PHPCfg\Op\Stmt\Switch_::__construct PHP Method

__construct() public method

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;
    }