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

DefinesPivotColumns::getUpdatedAtColumn()   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 1
Bugs 0 Features 0
Metric Value
eloc 1
c 1
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
namespace MichaelRubel\Couponables\Models\Traits;
4
5
trait DefinesPivotColumns
6
{
7
    /**
8
     * @return string
9
     */
10 19
    public function getRedeemedAtColumn(): string
11
    {
12 19
        return 'redeemed_at';
13
    }
14
15
    /**
16
     * @return string
17
     */
18 19
    public function getRedeemedTypeColumn(): string
19
    {
20 19
        return 'redeemed_type';
21
    }
22
23
    /**
24
     * @return string
25
     */
26 19
    public function getRedeemedIdColumn(): string
27
    {
28 19
        return 'redeemed_id';
29
    }
30
31
    /**
32
     * @return string
33
     */
34 19
    public function getCreatedAtColumn(): string
35
    {
36 19
        return 'created_at';
37
    }
38
39
    /**
40
     * @return string
41
     */
42 2
    public function getUpdatedAtColumn(): string
43
    {
44 2
        return 'updated_at';
45
    }
46
}
47