diff options
Diffstat (limited to 'src/Structure/Instructions/Instrs/Control/If_.php')
| -rw-r--r-- | src/Structure/Instructions/Instrs/Control/If_.php | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/src/Structure/Instructions/Instrs/Control/If_.php b/src/Structure/Instructions/Instrs/Control/If_.php new file mode 100644 index 0000000..0536be0 --- /dev/null +++ b/src/Structure/Instructions/Instrs/Control/If_.php @@ -0,0 +1,21 @@ +<?php + +declare(strict_types=1); + +namespace Nsfisis\Waddiwasi\Structure\Instructions\Instrs\Control; + +use Nsfisis\Waddiwasi\Structure\Instructions\Instr; + +final readonly class If_ extends Instr +{ + /** + * @param list<Instr> $thenBody + * @param list<Instr> $elseBody + */ + public function __construct( + public BlockType $type, + public array $thenBody, + public array $elseBody, + ) { + } +} |
