SemesterReport::setComments()   A
last analyzed

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
eloc 1
c 1
b 0
f 0
dl 0
loc 3
rs 10
cc 1
nc 1
nop 1
1
<?php
2
3
/*
4
 * This file is part of the vseth-semesterly-reports project.
5
 *
6
 * (c) Florian Moser <[email protected]>
7
 *
8
 * For the full copyright and license information, please view the LICENSE
9
 * file that was distributed with this source code.
10
 */
11
12
namespace App\Entity;
13
14
use App\Entity\Base\BaseEntity;
15
use App\Entity\Traits\IdTrait;
16
use App\Entity\Traits\TimeTrait;
17
use Doctrine\ORM\Mapping as ORM;
18
19
/**
20
 * @ORM\Entity()
21
 * @ORM\HasLifecycleCallbacks
22
 */
23
class SemesterReport extends BaseEntity
24
{
25
    use IdTrait;
26
    use TimeTrait;
27
28
    /**
29
     * @var int
30
     *
31
     * @ORM\Column(type="integer")
32
     */
33
    private $semester;
34
35
    /**
36
     * @var \DateTime
37
     *
38
     * @ORM\Column(type="datetime")
39
     */
40
    private $submittedDateTime;
41
42
    /**
43
     * @var string|null
44
     *
45
     * @ORM\Column(type="text", nullable=true)
46
     */
47
    private $politicalEventsDescription;
48
49
    /**
50
     * @var string|null
51
     *
52
     * @ORM\Column(type="text", nullable=true)
53
     */
54
    private $comments;
55
56
    /**
57
     * @var Organisation
58
     *
59
     * @ORM\ManyToOne(targetEntity="App\Entity\Organisation", inversedBy="semesterReports")
60
     */
61
    private $organisation;
62
63
    public function getSemester(): int
64
    {
65
        return $this->semester;
66
    }
67
68
    public function setSemester(int $semester): void
69
    {
70
        $this->semester = $semester;
71
    }
72
73
    public function getSubmittedDateTime(): \DateTime
74
    {
75
        return $this->submittedDateTime;
76
    }
77
78
    public function setSubmittedDateTime(\DateTime $submittedDateTime): void
79
    {
80
        $this->submittedDateTime = $submittedDateTime;
81
    }
82
83
    public function getPoliticalEventsDescription(): ?string
84
    {
85
        return $this->politicalEventsDescription;
86
    }
87
88
    public function setPoliticalEventsDescription(?string $politicalEventsDescription): void
89
    {
90
        $this->politicalEventsDescription = $politicalEventsDescription;
91
    }
92
93
    public function getComments(): ?string
94
    {
95
        return $this->comments;
96
    }
97
98
    public function setComments(?string $comments): void
99
    {
100
        $this->comments = $comments;
101
    }
102
103
    public function getOrganisation(): Organisation
104
    {
105
        return $this->organisation;
106
    }
107
108
    public function setOrganisation(Organisation $organisation): void
109
    {
110
        $this->organisation = $organisation;
111
    }
112
}
113