Passed
Push — master ( b3f573...f22e85 )
by Yannick
06:55 queued 13s
created

ContactCategory::getName()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 3
Code Lines 1

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
cc 1
eloc 1
c 1
b 0
f 0
nc 1
nop 0
dl 0
loc 3
rs 10
1
<?php
2
3
/* For licensing terms, see /license.txt */
4
5
declare(strict_types=1);
6
7
namespace Chamilo\CoreBundle\Entity;
8
9
use Doctrine\ORM\Mapping\Column;
10
use Doctrine\ORM\Mapping\Entity;
11
use Doctrine\ORM\Mapping\GeneratedValue;
12
use Doctrine\ORM\Mapping\Id;
13
use Doctrine\ORM\Mapping\Table;
14
15
#[Entity]
16
#[Table(name: 'contact_form_contact_category')]
17
class ContactCategory
18
{
19
    #[Id]
20
    #[GeneratedValue]
21
    #[Column(type: 'integer')]
22
    private ?int $id = null;
23
24
    #[Column(type: 'string', length: 255)]
25
    private string $title;
26
27
    #[Column(type: 'string', length: 255)]
28
    private string $email;
29
30
    public function getId(): ?int
31
    {
32
        return $this->id;
33
    }
34
35
    public function getTitle(): string
36
    {
37
        return $this->title;
38
    }
39
40
    public function setTitle(string $title): self
41
    {
42
        $this->title = $title;
43
44
        return $this;
45
    }
46
47
    public function getEmail(): string
48
    {
49
        return $this->email;
50
    }
51
52
    public function setEmail(string $email): self
53
    {
54
        $this->email = $email;
55
56
        return $this;
57
    }
58
}
59