diff options
| author | nsfisis <nsfisis@gmail.com> | 2024-02-26 13:21:22 +0900 |
|---|---|---|
| committer | nsfisis <nsfisis@gmail.com> | 2024-03-03 15:27:26 +0900 |
| commit | 996259e6a1a04f91179d2b83cc19e3fbb371cd33 (patch) | |
| tree | 14ccabf37cc909c8c61899ffb84429fdeb8dfce0 /src/Structure/Types/FuncType.php | |
| parent | 8a789bffe72e93ae24ea39648018e5fecf94c7fa (diff) | |
| download | php-waddiwasi-996259e6a1a04f91179d2b83cc19e3fbb371cd33.tar.gz php-waddiwasi-996259e6a1a04f91179d2b83cc19e3fbb371cd33.tar.zst php-waddiwasi-996259e6a1a04f91179d2b83cc19e3fbb371cd33.zip | |
feat: implement some of instructions
Diffstat (limited to 'src/Structure/Types/FuncType.php')
| -rw-r--r-- | src/Structure/Types/FuncType.php | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/src/Structure/Types/FuncType.php b/src/Structure/Types/FuncType.php index 17ef98a..e445512 100644 --- a/src/Structure/Types/FuncType.php +++ b/src/Structure/Types/FuncType.php @@ -7,8 +7,14 @@ namespace Nsfisis\Waddiwasi\Structure\Types; final readonly class FuncType { public function __construct( - public ResultType $args, - public ResultType $returns, + public ResultType $params, + public ResultType $results, ) { } + + public function equals(FuncType $other): bool + { + return $this->params->equals($other->params) + && $this->results->equals($other->results); + } } |
