File tree Expand file tree Collapse file tree 2 files changed +6
-5
lines changed
Expand file tree Collapse file tree 2 files changed +6
-5
lines changed Original file line number Diff line number Diff line change @@ -41,10 +41,11 @@ composer require personnummer/personnummer
4141When a personnummer is invalid a PersonnummerException is thrown.
4242
4343## Options
44- | Option | Type | Default | Description |
45- | -------------------------| :-----| :--------| :---------------------------:|
46- | allowCoordinationNumber | bool | true | Accept coordination numbers |
47- | allowInterimNumber | bool | false | Accept interim/T numbers |
44+ | Option | Type | Default | Description |
45+ | -------------------------| :-------------------------| :------------------------| :----------------------------------|
46+ | allowCoordinationNumber | bool | true | Accept coordination numbers |
47+ | allowInterimNumber | bool | false | Accept interim/T numbers |
48+ | clock | Psr\Clock\ClockInterface | Personummer\SystemClock | Clock used for time calculations |
4849
4950## Examples
5051
Original file line number Diff line number Diff line change @@ -193,7 +193,7 @@ private static function luhn(string $str): int
193193 public function __construct (string $ ssn , array $ options = [])
194194 {
195195 $ this ->options = $ this ->parseOptions ($ options );
196- $ this ->clock = $ this ->options ['clock ' ];
196+ $ this ->clock = $ this ->options ['clock ' ];
197197 $ this ->parts = self ::getParts ($ ssn );
198198
199199 // Sanity checks.
You can’t perform that action at this time.
0 commit comments