Skip to content

Commit 1b01e56

Browse files
committed
Add getId method to README example for completeness
1 parent c3bd547 commit 1b01e56

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -88,6 +88,7 @@ final readonly class Profile
8888
);
8989
}
9090

91+
public function getId(): IntegerPositive { return $this->id; }
9192
public function getFirstName(): StringNonEmpty|Undefined { return $this->firstName; }
9293
public function getHeight(): FloatPositive|Undefined { return $this->height; }
9394
}

0 commit comments

Comments
 (0)