X-Git-Url: https://git.m6w6.name/?p=m6w6%2Fseekat;a=blobdiff_plain;f=lib%2FAPI%2FCall.php;fp=lib%2FAPI%2FCall.php;h=a913bdaffb6c49c4f7031576342af864960a2f84;hp=38b1559f6172b2bffe7d28586c44e0c8d09ecc96;hb=654d736df2c46ec2520f73e9089d06a44f2b9c50;hpb=2121556150be871684b5046af7cf250b8219128d diff --git a/lib/API/Call.php b/lib/API/Call.php index 38b1559..a913bda 100644 --- a/lib/API/Call.php +++ b/lib/API/Call.php @@ -6,19 +6,7 @@ use http\Url; use seekat\API; final class Call { - /** - * @var API - */ - private $api; - - /** - * @var string - */ - private $call; - - function __construct(API $api, string $call) { - $this->api = $api; - $this->call = $call; + function __construct(private readonly API $api, private readonly string $call) { } function __invoke(array $args) {