DeletedByTrait   A
last analyzed

Complexity

Total Complexity 2

Size/Duplication

Total Lines 18
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 0

Test Coverage

Coverage 40%

Importance

Changes 0
Metric Value
dl 0
loc 18
ccs 2
cts 5
cp 0.4
rs 10
c 0
b 0
f 0
wmc 2
lcom 0
cbo 0

2 Methods

Rating   Name   Duplication   Size   Complexity  
A getDeletedBy() 0 4 1
A setDeletedBy() 0 4 1
1
<?php
2
3
namespace App\Traits;
4
5
use Doctrine\ORM\Mapping as ORM;
6
7
trait DeletedByTrait
8
{
9
    /**
10
     * @var string
11
     * @ORM\Column(type="string", nullable=true)
12
     */
13
    protected $deletedBy;
14
15 9
    public function getDeletedBy()
16
    {
17 9
        return $this->deletedBy;
18
    }
19
20
    public function setDeletedBy($deletedBy)
21
    {
22
        $this->deletedBy = $deletedBy;
23
    }
24
}
25