Passed
Push — master ( 727abb...ceefce )
by Yannick
07:55 queued 14s
created

SkillProfile::setTitle()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 5
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
cc 1
eloc 2
nc 1
nop 1
dl 0
loc 5
rs 10
c 0
b 0
f 0
1
<?php
2
3
declare(strict_types=1);
4
5
/* For licensing terms, see /license.txt */
6
7
namespace Chamilo\CoreBundle\Entity;
8
9
use Doctrine\ORM\Mapping as ORM;
10
use Symfony\Component\Validator\Constraints as Assert;
11
12
#[ORM\Table(name: 'skill_profile')]
13
#[ORM\Entity]
14
class SkillProfile
15
{
16
    #[ORM\Column(name: 'id', type: 'integer')]
17
    #[ORM\Id]
18
    #[ORM\GeneratedValue]
19
    protected ?int $id = null;
20
21
    #[Assert\NotBlank]
22
    #[ORM\Column(name: 'title', type: 'string', length: 255, nullable: false)]
23
    protected string $title;
24
25
    #[ORM\Column(name: 'description', type: 'text', nullable: false)]
26
    protected string $description;
27
28
    public function setTitle(string $title): self
29
    {
30
        $this->title = $title;
31
32
        return $this;
33
    }
34
35
    /**
36
     * Get title.
37
     *
38
     * @return string
39
     */
40
    public function getTitle()
41
    {
42
        return $this->title;
43
    }
44
45
    public function setDescription(string $description): self
46
    {
47
        $this->description = $description;
48
49
        return $this;
50
    }
51
52
    /**
53
     * Get description.
54
     *
55
     * @return string
56
     */
57
    public function getDescription()
58
    {
59
        return $this->description;
60
    }
61
62
    /**
63
     * Get id.
64
     *
65
     * @return int
66
     */
67
    public function getId()
68
    {
69
        return $this->id;
70
    }
71
}
72