SoftColumnTrait   A
last analyzed

Complexity

Total Complexity 6

Size/Duplication

Total Lines 66
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 0

Importance

Changes 0
Metric Value
dl 0
loc 66
c 0
b 0
f 0
wmc 6
lcom 0
cbo 0
rs 10

6 Methods

Rating   Name   Duplication   Size   Complexity  
A getSoftAdded() 0 4 1
A getSoftUpdated() 0 4 1
A getSoftDeleted() 0 4 1
A setSoftAdded() 0 5 1
A setSoftUpdated() 0 5 1
A setSoftDeleted() 0 5 1
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