DefinesColumns::getUpdatedAtColumn()   A
last analyzed

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 44
    public function getCodeColumn(): string
10
    {
11 44
        return 'code';
12
    }
13
14 15
    public function getTypeColumn(): string
15
    {
16 15
        return 'type';
17
    }
18
19 14
    public function getValueColumn(): string
20
    {
21 14
        return 'value';
22
    }
23
24 28
    public function getQuantityColumn(): string
25
    {
26 28
        return 'quantity';
27
    }
28
29 23
    public function getLimitColumn(): string
30
    {
31 23
        return 'limit';
32
    }
33
34 32
    public function getExpiresAtColumn(): string
35
    {
36 32
        return 'expires_at';
37
    }
38
39 34
    public function getIsEnabledColumn(): string
40
    {
41 34
        return 'is_enabled';
42
    }
43
44 29
    public function getRedeemerTypeColumn(): string
45
    {
46 29
        return 'redeemer_type';
47
    }
48
49 11
    public function getRedeemerIdColumn(): string
50
    {
51 11
        return 'redeemer_id';
52
    }
53
54 1
    public function getDataColumn(): string
55
    {
56 1
        return 'data';
57
    }
58
59 63
    public function getCreatedAtColumn(): string
60
    {
61 63
        return 'created_at';
62
    }
63
64 63
    public function getUpdatedAtColumn(): string
65
    {
66 63
        return 'updated_at';
67
    }
68
}
69