Reminder   A
last analyzed

Complexity

Total Complexity 5

Size/Duplication

Total Lines 42
Duplicated Lines 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
wmc 5
eloc 10
c 1
b 0
f 0
dl 0
loc 42
rs 10

5 Methods

Rating   Name   Duplication   Size   Complexity  
A setSubject() 0 3 1
A setBody() 0 3 1
A getSubject() 0 3 1
A __toString() 0 3 1
A getBody() 0 3 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