| 1 | <?php |
||
| 14 | class Identification { |
||
| 15 | /** |
||
| 16 | * Checks that a identification number is theoretically valid. It does not |
||
| 17 | * validate that the identification number actually belongs to a human. |
||
| 18 | * |
||
| 19 | * id_type is either: |
||
| 20 | * - 1 - South African Identification Number |
||
| 21 | * - 2 - Passport |
||
| 22 | * - 3 - South African Asylum Document Number |
||
| 23 | * |
||
| 24 | * @param string $id_document_number Document Number of the document |
||
| 25 | * @param integer $id_type Identification Document Type |
||
| 26 | * |
||
| 27 | * @throws \InvalidArgumentException |
||
| 28 | * |
||
| 29 | * @return bool true if is theoretically valid else false |
||
| 30 | */ |
||
| 31 | public static function is_valid($id_document_number = null, $id_type = null) { |
||
| 62 | } |
||
| 63 |