Passed
Push — master ( e0be7e...289b76 )
by Florian
03:16 queued 53s
created

Reminder::setBody()   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
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 Reminder extends BaseEntity
24
{
25
    use IdTrait;
26
    use TimeTrait;
27
28
    /**
29
     * @var string
30
     *
31
     * @ORM\Column(type="text")
32
     */
33
    private $subject;
34
35
    /**
36
     * @var string
37
     *
38
     * @ORM\Column(type="text")
39
     */
40
    private $body;
41
42
    public function getSubject(): string
43
    {
44
        return $this->subject;
45
    }
46
47
    public function setSubject(string $subject): void
48
    {
49
        $this->subject = $subject;
50
    }
51
52
    public function getBody(): ?string
53
    {
54
        return $this->body;
55
    }
56
57
    public function setBody(?string $body): void
58
    {
59
        $this->body = $body;
60
    }
61
62
    public function __toString()
63
    {
64
        return 'hi mom';
65
    }
66
}
67