From 629e358758f1664af9355ff4f7b5406f6db61204 Mon Sep 17 00:00:00 2001 From: Marc van der Meulen Date: Tue, 24 Oct 2023 18:50:28 +0200 Subject: [PATCH 1/2] Make zone properties public --- src/Domain/Zone.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Domain/Zone.php b/src/Domain/Zone.php index 2611811..09cd9bd 100644 --- a/src/Domain/Zone.php +++ b/src/Domain/Zone.php @@ -6,7 +6,7 @@ final class Zone implements DomainObjectInterface { - private function __construct(private string $service, private ?string $template, private ?bool $link) + private function __construct(public string $service, public ?string $template, public ?bool $link) { } From 7709a0b2ccc37544f2d07f40a5fc9d05ad8c0850 Mon Sep 17 00:00:00 2001 From: Marc van der Meulen Date: Tue, 24 Oct 2023 18:52:21 +0200 Subject: [PATCH 2/2] Make the service readonly --- src/Domain/Zone.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Domain/Zone.php b/src/Domain/Zone.php index 09cd9bd..eb02f67 100644 --- a/src/Domain/Zone.php +++ b/src/Domain/Zone.php @@ -6,7 +6,7 @@ final class Zone implements DomainObjectInterface { - private function __construct(public string $service, public ?string $template, public ?bool $link) + private function __construct(public readonly string $service, public ?string $template, public ?bool $link) { }