Passed
Push — master ( 1e00a2...f52220 )
by Angel Fernando Quiroz
07:44 queued 14s
created

XApiLrsAuth::setEnabled()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 5
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 5
rs 10
1
<?php
2
3
namespace Chamilo\CoreBundle\Entity;
4
5
use Chamilo\CoreBundle\Repository\XApiLrsAuthRepository;
6
use Doctrine\ORM\Mapping as ORM;
7
use Gedmo\Timestampable\Traits\TimestampableEntity;
8
9
#[ORM\Entity(repositoryClass: XApiLrsAuthRepository::class)]
10
class XApiLrsAuth
11
{
12
    use TimestampableEntity;
13
14
    #[ORM\Id]
15
    #[ORM\GeneratedValue]
16
    #[ORM\Column]
17
    private ?int $id = null;
18
19
    #[ORM\Column(length: 255)]
20
    private ?string $username = null;
21
22
    #[ORM\Column(length: 255)]
23
    private ?string $password = null;
24
25
    #[ORM\Column]
26
    private ?bool $enabled = null;
27
28
    public function getId(): ?int
29
    {
30
        return $this->id;
31
    }
32
33
    public function getUsername(): ?string
34
    {
35
        return $this->username;
36
    }
37
38
    public function setUsername(string $username): static
39
    {
40
        $this->username = $username;
41
42
        return $this;
43
    }
44
45
    public function getPassword(): ?string
46
    {
47
        return $this->password;
48
    }
49
50
    public function setPassword(string $password): static
51
    {
52
        $this->password = $password;
53
54
        return $this;
55
    }
56
57
    public function isEnabled(): ?bool
58
    {
59
        return $this->enabled;
60
    }
61
62
    public function setEnabled(bool $enabled): static
63
    {
64
        $this->enabled = $enabled;
65
66
        return $this;
67
    }
68
}
69