Total Complexity | 4 |
Total Lines | 105 |
Duplicated Lines | 0 % |
Changes | 2 | ||
Bugs | 0 | Features | 1 |
1 | <?php |
||
14 | class AppsKeys extends AbstractModel |
||
15 | { |
||
16 | /** |
||
17 | * |
||
18 | * @var integer |
||
19 | */ |
||
20 | public $client_id; |
||
21 | |||
22 | /** |
||
23 | * |
||
24 | * @var integer |
||
25 | */ |
||
26 | public $client_secret_id; |
||
27 | |||
28 | /** |
||
29 | * |
||
30 | * @var integer |
||
31 | */ |
||
32 | public $apps_id; |
||
33 | |||
34 | /** |
||
35 | * |
||
36 | * @var integer |
||
37 | */ |
||
38 | public $users_id; |
||
39 | |||
40 | /** |
||
41 | * |
||
42 | * @var string |
||
43 | */ |
||
44 | public $last_used_date; |
||
45 | |||
46 | /** |
||
47 | * |
||
48 | * @var string |
||
49 | */ |
||
50 | public $created_at; |
||
51 | |||
52 | /** |
||
53 | * |
||
54 | * @var string |
||
55 | */ |
||
56 | public $updated_at; |
||
57 | |||
58 | /** |
||
59 | * |
||
60 | * @var integer |
||
61 | */ |
||
62 | public $is_deleted; |
||
63 | |||
64 | /** |
||
65 | * Initialize method for model. |
||
66 | */ |
||
67 | public function initialize() |
||
83 | ); |
||
84 | } |
||
85 | |||
86 | /** |
||
87 | * Returns table name mapped in the model. |
||
88 | * |
||
89 | * @return string |
||
90 | */ |
||
91 | public function getSource() : string |
||
94 | } |
||
95 | |||
96 | /** |
||
97 | * Validate Apps Keys by client id, client secret id and apps key |
||
98 | * @param string $clientId |
||
99 | * @param string $clientSecretId |
||
100 | * @param int $appsId |
||
101 | * |
||
102 | * @return AppsKeys |
||
103 | */ |
||
104 | public static function validateAppsKeys(string $clientId, string $clientSecretId, int $appsId): self |
||
121 |