| Total Complexity | 12 |
| Total Lines | 96 |
| Duplicated Lines | 0 % |
| Coverage | 100% |
| Changes | 6 | ||
| Bugs | 0 | Features | 3 |
| 1 | <?php |
||
| 7 | trait DefinesColumns |
||
| 8 | { |
||
| 9 | /** |
||
| 10 | * @return string |
||
| 11 | */ |
||
| 12 | 43 | public function getCodeColumn(): string |
|
| 15 | } |
||
| 16 | |||
| 17 | /** |
||
| 18 | * @return string |
||
| 19 | */ |
||
| 20 | 15 | public function getTypeColumn(): string |
|
| 23 | } |
||
| 24 | |||
| 25 | /** |
||
| 26 | * @return string |
||
| 27 | */ |
||
| 28 | 14 | public function getValueColumn(): string |
|
| 31 | } |
||
| 32 | |||
| 33 | /** |
||
| 34 | * @return string |
||
| 35 | */ |
||
| 36 | 30 | public function getQuantityColumn(): string |
|
| 37 | { |
||
| 38 | 30 | return 'quantity'; |
|
| 39 | } |
||
| 40 | |||
| 41 | /** |
||
| 42 | * @return string |
||
| 43 | */ |
||
| 44 | 30 | public function getLimitColumn(): string |
|
| 47 | } |
||
| 48 | |||
| 49 | /** |
||
| 50 | * @return string |
||
| 51 | */ |
||
| 52 | 34 | public function getExpiresAtColumn(): string |
|
| 55 | } |
||
| 56 | |||
| 57 | /** |
||
| 58 | * @return string |
||
| 59 | */ |
||
| 60 | 32 | public function getIsEnabledColumn(): string |
|
| 61 | { |
||
| 62 | 32 | return 'is_enabled'; |
|
| 63 | } |
||
| 64 | |||
| 65 | /** |
||
| 66 | * @return string |
||
| 67 | */ |
||
| 68 | 9 | public function getRedeemerTypeColumn(): string |
|
| 69 | { |
||
| 70 | 9 | return 'redeemer_type'; |
|
| 71 | } |
||
| 72 | |||
| 73 | /** |
||
| 74 | * @return string |
||
| 75 | */ |
||
| 76 | 1 | public function getRedeemerIdColumn(): string |
|
| 77 | { |
||
| 78 | 1 | return 'redeemer_id'; |
|
| 79 | } |
||
| 80 | |||
| 81 | /** |
||
| 82 | * @return string |
||
| 83 | */ |
||
| 84 | 60 | public function getDataColumn(): string |
|
| 85 | { |
||
| 86 | 60 | return 'data'; |
|
| 87 | } |
||
| 88 | |||
| 89 | /** |
||
| 90 | * @return string |
||
| 91 | */ |
||
| 92 | 60 | public function getCreatedAtColumn(): string |
|
| 95 | } |
||
| 96 | |||
| 97 | /** |
||
| 98 | * @return string |
||
| 99 | */ |
||
| 100 | public function getUpdatedAtColumn(): string |
||
| 103 | } |
||
| 104 | } |
||
| 105 |