| Total Complexity | 2 |
| Total Lines | 48 |
| Duplicated Lines | 0 % |
| Changes | 5 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 8 | class VatNumberCheck extends VatNumberCheckAppModel { |
||
| 9 | |||
| 10 | /** |
||
| 11 | * The name of the DataSource connection that this Model uses. |
||
| 12 | * |
||
| 13 | * @var string |
||
| 14 | */ |
||
| 15 | public $useDbConfig = 'vatNumberCheckWebservice'; |
||
| 16 | |||
| 17 | /** |
||
| 18 | * Use table. |
||
| 19 | * |
||
| 20 | * @var mixed False or table name |
||
| 21 | */ |
||
| 22 | public $useTable = false; |
||
| 23 | |||
| 24 | /** |
||
| 25 | * The (translation) domain to be used for extracted validation messages in models. |
||
| 26 | * |
||
| 27 | * @var string |
||
| 28 | */ |
||
| 29 | public $validationDomain = 'vat_number_check'; |
||
| 30 | |||
| 31 | /** |
||
| 32 | * Normalizes a VAT number. |
||
| 33 | * |
||
| 34 | * @param string $vatNumber A VAT number |
||
| 35 | * @return string A (normalized) VAT number |
||
| 36 | */ |
||
| 37 | public function normalize(string $vatNumber) : string { |
||
| 39 | } |
||
| 40 | |||
| 41 | /** |
||
| 42 | * Checks a given VAT number. |
||
| 43 | * |
||
| 44 | * @param string $vatNumber A VAT number |
||
| 45 | * @return bool Valid or not |
||
| 46 | */ |
||
| 47 | public function check(string $vatNumber) : bool { |
||
| 58 |