Total Complexity | 4 |
Total Lines | 74 |
Duplicated Lines | 0 % |
Changes | 2 | ||
Bugs | 0 | Features | 1 |
1 | <?php |
||
6 | class PaymentMethods extends AbstractModel |
||
7 | { |
||
8 | /** |
||
9 | * |
||
10 | * @var integer |
||
11 | */ |
||
12 | public $id; |
||
13 | |||
14 | /** |
||
15 | * |
||
16 | * @var string |
||
17 | */ |
||
18 | public $name; |
||
19 | |||
20 | /** |
||
21 | * |
||
22 | * @var integer |
||
23 | */ |
||
24 | public $is_default; |
||
25 | |||
26 | /** |
||
27 | * |
||
28 | * @var string |
||
29 | */ |
||
30 | public $created_at; |
||
31 | |||
32 | /** |
||
33 | * |
||
34 | * @var string |
||
35 | */ |
||
36 | public $updated_at; |
||
37 | |||
38 | /** |
||
39 | * |
||
40 | * @var integer |
||
41 | */ |
||
42 | public $is_deleted; |
||
43 | |||
44 | /** |
||
45 | * Initialize method for model. |
||
46 | */ |
||
47 | public function initialize() |
||
48 | { |
||
49 | $this->setSource('payment_methods'); |
||
50 | } |
||
51 | |||
52 | /** |
||
53 | * Returns table name mapped in the model. |
||
54 | * |
||
55 | * @return string |
||
56 | */ |
||
57 | public function getSource(): string |
||
58 | { |
||
59 | return 'payment_methods'; |
||
60 | } |
||
61 | |||
62 | /** |
||
63 | * Returns table name mapped in the model. |
||
64 | * |
||
65 | * @return string |
||
66 | */ |
||
67 | public static function getDefault(): self |
||
70 | } |
||
71 | |||
72 | /** |
||
73 | * Returns table name mapped in the model. |
||
74 | * |
||
75 | * @return int |
||
76 | */ |
||
77 | public function getId(): int |
||
80 | } |
||
81 | } |
||
82 |