aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/Execution/FuncInsts/Host.php
blob: 67686b4b1133e355334fb12523cc012abee1a52e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
<?php

declare(strict_types=1);

namespace Nsfisis\Waddiwasi\Execution\FuncInsts;

use Nsfisis\Waddiwasi\Execution\FuncInst;
use Nsfisis\Waddiwasi\Structure\Types\FuncType;

final readonly class Host extends FuncInst
{
    /**
     * @param callable $callback
     */
    public function __construct(
        public FuncType $type,
        public mixed $callback,
    ) {
    }
}