aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/Structure/Instructions/Instrs/Control/If_.php
diff options
context:
space:
mode:
authornsfisis <nsfisis@gmail.com>2024-03-03 21:01:46 +0900
committernsfisis <nsfisis@gmail.com>2024-03-04 07:23:59 +0900
commit8b689c5ff077252a68c88bc7d70990405fc8dd5a (patch)
tree216bef1b2bd71892086a2961617bcdb7d22ea2b1 /src/Structure/Instructions/Instrs/Control/If_.php
parent996259e6a1a04f91179d2b83cc19e3fbb371cd33 (diff)
downloadphp-waddiwasi-8b689c5ff077252a68c88bc7d70990405fc8dd5a.tar.gz
php-waddiwasi-8b689c5ff077252a68c88bc7d70990405fc8dd5a.tar.zst
php-waddiwasi-8b689c5ff077252a68c88bc7d70990405fc8dd5a.zip
feat: implement more instructions
Diffstat (limited to 'src/Structure/Instructions/Instrs/Control/If_.php')
-rw-r--r--src/Structure/Instructions/Instrs/Control/If_.php5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/Structure/Instructions/Instrs/Control/If_.php b/src/Structure/Instructions/Instrs/Control/If_.php
index 1eeee47..f758395 100644
--- a/src/Structure/Instructions/Instrs/Control/If_.php
+++ b/src/Structure/Instructions/Instrs/Control/If_.php
@@ -18,4 +18,9 @@ final readonly class If_ extends Instr
public array $elseBody,
) {
}
+
+ public static function opName(): string
+ {
+ return "if";
+ }
}