Test Failed
Push — develop ( 64b6b0...ddb817 )
by nguereza
02:24
created

UserParam::setLastname()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
cc 1
eloc 2
c 1
b 0
f 0
nc 1
nop 1
dl 0
loc 4
rs 10
1
<?php
2
3
namespace Platine\Framework\Demo\Form\Param;
4
5
class UserParam extends BaseParam
6
{
7
    protected string $username = '';
8
    protected string $lastname = '';
9
    protected string $firstname = '';
10
    protected string $password = '';
11
    protected string $age = '';
12
13
    public function getUsername(): string
14
    {
15
        return $this->username;
16
    }
17
18
    public function setUsername(string $username): self
19
    {
20
        $this->username = $username;
21
22
        return $this;
23
    }
24
25
    public function getPassword(): string
26
    {
27
        return $this->password;
28
    }
29
30
    public function setPassword(string $password): self
31
    {
32
        $this->password = $password;
33
34
        return $this;
35
    }
36
37
    public function getLastname(): string
38
    {
39
        return $this->lastname;
40
    }
41
42
    public function getFirstname(): string
43
    {
44
        return $this->firstname;
45
    }
46
47
    public function getAge(): string
48
    {
49
        return $this->age;
50
    }
51
52
    public function setLastname(string $lastname): self
53
    {
54
        $this->lastname = $lastname;
55
        return $this;
56
    }
57
58
    public function setFirstname(string $firstname): self
59
    {
60
        $this->firstname = $firstname;
61
        return $this;
62
    }
63
64
    public function setAge(string $age): self
65
    {
66
        $this->age = $age;
67
        return $this;
68
    }
69
}
70