Passed
Push — main ( 8c1e04...bb028d )
by Michael
03:23
created

DefinesColumns::getCreatedAtColumn()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 3
Code Lines 1

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 2
CRAP Score 1

Importance

Changes 0
Metric Value
eloc 1
c 0
b 0
f 0
dl 0
loc 3
ccs 2
cts 2
cp 1
rs 10
cc 1
nc 1
nop 0
crap 1
1
<?php
2
3
declare(strict_types=1);
4
5
namespace MichaelRubel\Couponables\Models\Traits;
6
7
trait DefinesColumns
8
{
9
    /**
10
     * @return string
11
     */
12 32
    public function getCodeColumn(): string
13
    {
14 32
        return 'code';
15
    }
16
17
    /**
18
     * @return string
19
     */
20 3
    public function getTypeColumn(): string
21
    {
22 3
        return 'type';
23
    }
24
25
    /**
26
     * @return string
27
     */
28 2
    public function getValueColumn(): string
29
    {
30 2
        return 'value';
31
    }
32
33
    /**
34
     * @return string
35
     */
36 23
    public function getQuantityColumn(): string
37
    {
38 23
        return 'quantity';
39
    }
40
41
    /**
42
     * @return string
43
     */
44 23
    public function getLimitColumn(): string
45
    {
46 23
        return 'limit';
47
    }
48
49
    /**
50
     * @return string
51
     */
52 26
    public function getExpiresAtColumn(): string
53
    {
54 26
        return 'expires_at';
55
    }
56
57
    /**
58
     * @return string
59
     */
60 24
    public function getRedeemerTypeColumn(): string
61
    {
62 24
        return 'redeemer_type';
63
    }
64
65
    /**
66
     * @return string
67
     */
68 6
    public function getRedeemerIdColumn(): string
69
    {
70 6
        return 'redeemer_id';
71
    }
72
73
    /**
74
     * @return string
75
     */
76 1
    public function getDataColumn(): string
77
    {
78 1
        return 'data';
79
    }
80
81
    /**
82
     * @return string
83
     */
84 38
    public function getCreatedAtColumn(): string
85
    {
86 38
        return 'created_at';
87
    }
88
89
    /**
90
     * @return string
91
     */
92 38
    public function getUpdatedAtColumn(): string
93
    {
94 38
        return 'updated_at';
95
    }
96
}
97