HasTelephone   A
last analyzed

Complexity

Total Complexity 2

Size/Duplication

Total Lines 13
Duplicated Lines 0 %

Test Coverage

Coverage 50%

Importance

Changes 1
Bugs 0 Features 0
Metric Value
eloc 5
c 1
b 0
f 0
dl 0
loc 13
ccs 2
cts 4
cp 0.5
rs 10
wmc 2

2 Methods

Rating   Name   Duplication   Size   Complexity  
A getTelephone() 0 3 1
A setTelephone() 0 3 1
1
<?php
2
3
declare(strict_types=1);
4
5
namespace Bone\BoneDoctrine\Traits;
6
7
use Doctrine\ORM\Mapping as ORM;
8
9
trait HasTelephone
10
{
11
    #[ORM\Column(length: 20)]
12
    private string $telephone = '';
13
14
    public function getTelephone(): string
15
    {
16
        return $this->telephone;
17
    }
18
19 1
    public function setTelephone(string $telephone): void
20
    {
21 1
        $this->telephone = $telephone;
22
    }
23
}
24