Completed
Push — IncomprehensibleFinder/Edu-Chr... ( b270cf )
by Eduard
04:00
created

Person::setName()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 4

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 0
CRAP Score 2

Importance

Changes 0
Metric Value
dl 0
loc 4
c 0
b 0
f 0
ccs 0
cts 3
cp 0
rs 10
cc 1
nc 1
nop 1
crap 2
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
    public function setName(string $name)
23
    {
24
        $this->name = $name;
25
    }
26
27
    public function getBirthDate(): DateTime
28
    {
29
        return $this->birthDate;
30
    }
31
32
    public function setBirthDate(DateTime $birthDate)
33
    {
34
        $this->birthDate = $birthDate;
35
    }
36
}
37