diff --git a/src/Session.php b/src/Session.php index 302a812..7f40e42 100644 --- a/src/Session.php +++ b/src/Session.php @@ -18,19 +18,14 @@ */ final class Session { - private Id $id; - private Name $name; - /** @var Map */ - private Map $values; - /** * @param Map $values */ - private function __construct(Id $id, Name $name, Map $values) - { - $this->id = $id; - $this->name = $name; - $this->values = $values; + private function __construct( + private Id $id, + private Name $name, + private Map $values, + ) { } /** diff --git a/src/Session/Id.php b/src/Session/Id.php index c3e6cfd..a2b3364 100644 --- a/src/Session/Id.php +++ b/src/Session/Id.php @@ -13,11 +13,8 @@ */ final class Id { - private string $value; - - private function __construct(string $value) + private function __construct(private string $value) { - $this->value = $value; } /** diff --git a/src/Session/Name.php b/src/Session/Name.php index 4067c26..0066a05 100644 --- a/src/Session/Name.php +++ b/src/Session/Name.php @@ -14,11 +14,8 @@ */ final class Name { - private string $value; - - private function __construct(string $value) + private function __construct(private string $value) { - $this->value = $value; } /**