Total Complexity | 5 |
Total Lines | 62 |
Duplicated Lines | 0 % |
Changes | 2 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
9 | class Validator |
||
10 | { |
||
11 | /** |
||
12 | * @var array |
||
13 | */ |
||
14 | private $keys = [ |
||
15 | 'id', |
||
16 | 'operation_number', |
||
17 | 'operation_type', |
||
18 | 'operation_status', |
||
19 | 'operation_amount', |
||
20 | 'operation_currency', |
||
21 | 'operation_withdrawal_amount', |
||
22 | 'operation_commission_amount', |
||
23 | 'operation_original_amount', |
||
24 | 'operation_original_currency', |
||
25 | 'operation_datetime', |
||
26 | 'operation_related_number', |
||
27 | 'control', |
||
28 | 'description', |
||
29 | 'email', |
||
30 | 'p_info', |
||
31 | 'p_email', |
||
32 | 'credit_card_issuer_identification_number', |
||
33 | 'credit_card_masked_number', |
||
34 | 'credit_card_brand_codename', |
||
35 | 'credit_card_brand_code', |
||
36 | 'credit_card_id', |
||
37 | 'channel', |
||
38 | 'channel_country', |
||
39 | 'geoip_country', |
||
40 | ]; |
||
41 | |||
42 | /** |
||
43 | * @var |
||
44 | */ |
||
45 | private $pin; |
||
46 | |||
47 | /** |
||
48 | * Validator constructor. |
||
49 | * @param $pin |
||
50 | */ |
||
51 | public function __construct($pin) |
||
54 | } |
||
55 | |||
56 | /** |
||
57 | * @param $data |
||
58 | * @return bool |
||
59 | */ |
||
60 | public function verify($data) |
||
73 |