1 | <?php |
||
14 | final class StateRegistration extends AbstractDocument implements DocumentInterface |
||
15 | { |
||
16 | /** |
||
17 | * @var StateInterface |
||
18 | */ |
||
19 | private $state; |
||
20 | |||
21 | /** |
||
22 | * StateRegistration constructor. |
||
23 | * |
||
24 | * @param string $number |
||
25 | * @param StateInterface $state |
||
26 | */ |
||
27 | 476 | public function __construct($number, StateInterface $state) |
|
33 | |||
34 | /** |
||
35 | * {@inheritdoc} |
||
36 | */ |
||
37 | 398 | protected function extractBaseNumber($number) |
|
41 | |||
42 | /** |
||
43 | * {@inheritdoc} |
||
44 | */ |
||
45 | 476 | protected function extractCheckerDigit($number) |
|
49 | |||
50 | /** |
||
51 | * Voter does not has a specific format. |
||
52 | * |
||
53 | * @return string Returns only numbers. |
||
54 | */ |
||
55 | 41 | public function format() |
|
59 | |||
60 | /** |
||
61 | * {@inheritdoc} |
||
62 | */ |
||
63 | 398 | public function calculateDigit($baseNumber) |
|
69 | } |
||
70 |