SoftColumnTrait::getSoftDeleted()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
dl 0
loc 4
c 0
b 0
f 0
rs 10
cc 1
eloc 2
nc 1
nop 0
1
<?php
2
3
namespace Graze\DataDb;
4
5
trait SoftColumnTrait
6
{
7
    /** @var string|null */
8
    protected $added = null;
9
    /** @var string|null */
10
    protected $updated = null;
11
    /** @var string|null */
12
    protected $deleted = null;
13
14
    /**
15
     * @return string|null
16
     */
17
    public function getSoftAdded()
18
    {
19
        return $this->added;
20
    }
21
22
    /**
23
     * @return string|null
24
     */
25
    public function getSoftUpdated()
26
    {
27
        return $this->updated;
28
    }
29
30
    /**
31
     * @return string|null
32
     */
33
    public function getSoftDeleted()
34
    {
35
        return $this->deleted;
36
    }
37
38
    /**
39
     * @param null|string $added
40
     *
41
     * @return static
42
     */
43
    public function setSoftAdded($added)
44
    {
45
        $this->added = $added;
46
        return $this;
47
    }
48
49
    /**
50
     * @param null|string $updated
51
     *
52
     * @return static
53
     */
54
    public function setSoftUpdated($updated)
55
    {
56
        $this->updated = $updated;
57
        return $this;
58
    }
59
60
    /**
61
     * @param null|string $deleted
62
     *
63
     * @return static
64
     */
65
    public function setSoftDeleted($deleted)
66
    {
67
        $this->deleted = $deleted;
68
        return $this;
69
    }
70
}
71