IfBlock.php
| 1 | <?php |
| 2 | |
| 3 | /** |
| 4 | * SCSSPHP |
| 5 | * |
| 6 | * @copyright 2012-2020 Leaf Corcoran |
| 7 | * |
| 8 | * @license http://opensource.org/licenses/MIT MIT |
| 9 | * |
| 10 | * @link http://scssphp.github.io/scssphp |
| 11 | */ |
| 12 | |
| 13 | namespace ScssPhp\ScssPhp\Block; |
| 14 | |
| 15 | use ScssPhp\ScssPhp\Block; |
| 16 | use ScssPhp\ScssPhp\Type; |
| 17 | |
| 18 | /** |
| 19 | * @internal |
| 20 | */ |
| 21 | class IfBlock extends Block |
| 22 | { |
| 23 | /** |
| 24 | * @var array |
| 25 | */ |
| 26 | public $cond; |
| 27 | |
| 28 | /** |
| 29 | * @var array<ElseifBlock|ElseBlock> |
| 30 | */ |
| 31 | public $cases = []; |
| 32 | |
| 33 | public function __construct() |
| 34 | { |
| 35 | $this->type = Type::T_IF; |
| 36 | } |
| 37 | } |
| 38 |