Completed
Push — IncomprehensibleFinder/marcos ( 3df5a7 )
by Marcos
05:21 queued 03:01
created

Person::setName()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 3
CRAP Score 1

Importance

Changes 0
Metric Value
dl 0
loc 4
c 0
b 0
f 0
ccs 3
cts 3
cp 1
rs 10
cc 1
eloc 2
nc 1
nop 1
crap 1
1
<?php
2
3
declare(strict_types = 1);
4
5
namespace Kata\Algorithm;
6
7
use DateTime;
8
9
final class Person
10
{
11
    /** @var string */
12
    public $name;
13
14
    /** @var DateTime */
15
    public $birthDate;
16
17
    public function getName(): string
18
    {
19
        return $this->name;
20
    }
21
22 6
    public function setName(string $name)
23
    {
24 6
        $this->name = $name;
25 6
    }
26
27
    public function getBirthDate(): DateTime
28
    {
29
        return $this->birthDate;
30
    }
31
32 6
    public function setBirthDate(DateTime $birthDate)
33
    {
34 6
        $this->birthDate = $birthDate;
35 6
    }
36
}
37