1 | <?php |
||
11 | class FakeId extends PersonalId |
||
12 | { |
||
13 | /** |
||
14 | * Regular expression describing id structure |
||
15 | */ |
||
16 | const PATTERN = '/^((?:\d\d)?)(\d{6})([-+]?)(xx[12x])(x)$/i'; |
||
17 | |||
18 | /** |
||
19 | * Fake personal identity numbers |
||
20 | * |
||
21 | * {@inheritdoc} |
||
22 | * |
||
23 | * @param string $number |
||
24 | */ |
||
25 | 34 | public function __construct($number) |
|
32 | |||
33 | 1 | public function getSex() |
|
37 | |||
38 | 1 | public function getBirthCounty() |
|
42 | |||
43 | /** |
||
44 | * Fake ids always have valid check digits |
||
45 | */ |
||
46 | 12 | protected function validateCheckDigit() |
|
49 | } |
||
50 |