1 | <?php |
||
11 | class CoordinationId extends PersonalId |
||
12 | { |
||
13 | /** |
||
14 | * @var string |
||
15 | */ |
||
16 | private $datestr; |
||
17 | |||
18 | /** |
||
19 | * Create coordination id number |
||
20 | 46 | * |
|
21 | * A coordination number is like a personal number except that 60 is added |
||
22 | 46 | * to the date of birth. |
|
23 | 28 | * |
|
24 | 28 | * NOTE that coordination numbers may contain a date that does not actually |
|
25 | 10 | * exist. The month and day parts may on some cases be set to '00'. And |
|
26 | * the day part may in some cases refer to undefined dates, such as the 30th |
||
27 | 28 | * of february. In these cases the parser will convert the date to a valid |
|
28 | * date, even though it may not reflect the actual birth date. |
||
29 | 28 | * |
|
30 | * @param string $raw The raw id to parse |
||
31 | * @param \DateTimeInterface $atDate Optional date when parsing takes place, defaults to today |
||
32 | 1 | * @throws UnableToCreateIdException On failure to create id |
|
33 | */ |
||
34 | 1 | public function __construct(string $raw, \DateTimeInterface $atDate = null) |
|
52 | |||
53 | public function getSerialPreDelimiter(): string |
||
57 | |||
58 | public function getBirthCounty(): string |
||
62 | } |
||
63 |