1 | <?php |
||
10 | class Checker |
||
11 | { |
||
12 | private $subject; |
||
13 | private $omocodiaLevel = self::ALL_OMOCODIA_LEVELS; |
||
14 | private $codiceFiscaleToCheck; |
||
15 | |||
16 | /** |
||
17 | * Constant to check for all the omocodia levels. |
||
18 | */ |
||
19 | const ALL_OMOCODIA_LEVELS = -1; |
||
20 | |||
21 | /** |
||
22 | * Create a Codice Fiscale instance. |
||
23 | * |
||
24 | * @param Subject $subject The subject. |
||
25 | * @param $properties Array of additional properties. |
||
26 | */ |
||
27 | 3 | public function __construct(Subject $subject, $properties = array()) |
|
39 | |||
40 | /** |
||
41 | * Check if the given data is ok for the given codice fiscale. |
||
42 | * |
||
43 | * @returns Returns true if the codice fiscale is ok, false otherwise. |
||
44 | */ |
||
45 | 3 | public function check() |
|
58 | } |
||
59 |