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

AuthParam   A

Complexity

Total Complexity 4

Size/Duplication

Total Lines 27
Duplicated Lines 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
eloc 9
c 1
b 0
f 0
dl 0
loc 27
rs 10
wmc 4

4 Methods

Rating   Name   Duplication   Size   Complexity  
A getPassword() 0 3 1
A setUsername() 0 5 1
A setPassword() 0 5 1
A getUsername() 0 3 1
1
<?php
2
3
namespace Platine\Framework\Demo\Form\Param;
4
5
class AuthParam extends BaseParam
6
{
7
    protected string $username = '';
8
    protected string $password = '';
9
10
    public function getUsername(): string
11
    {
12
        return $this->username;
13
    }
14
15
    public function setUsername(string $username): self
16
    {
17
        $this->username = $username;
18
19
        return $this;
20
    }
21
22
    public function getPassword(): string
23
    {
24
        return $this->password;
25
    }
26
27
    public function setPassword(string $password): self
28
    {
29
        $this->password = $password;
30
31
        return $this;
32
    }
33
}
34