Feedback   A
last analyzed

Complexity

Total Complexity 3

Size/Duplication

Total Lines 29
Duplicated Lines 0 %

Test Coverage

Coverage 0%

Importance

Changes 0
Metric Value
dl 0
loc 29
ccs 0
cts 7
cp 0
rs 10
c 0
b 0
f 0
wmc 3

3 Methods

Rating   Name   Duplication   Size   Complexity  
A getAuthor() 0 3 1
A setAuthor() 0 5 1
A getType() 0 3 1
1
<?php
2
3
namespace App\Entity\Project;
4
5
use Doctrine\ORM\Mapping as ORM;
6
7
use Symfony\Component\Security\Core\User\UserInterface;
8
9
/**
10
 * @ORM\Entity(repositoryClass="App\Repository\Project\FeedbackRepository")
11
 * @ORM\Table(name="project__feedbacks")
12
 * @ORM\HasLifecycleCallbacks()
13
 */
14
class Feedback extends Job
15
{
16
    /**
17
     * @ORM\ManyToOne(targetEntity="App\Entity\User\User")
18
     **/
19
    protected $author;
20
21
    const STATUS_OPEN = 0;
22
    const STATUS_TO_DO = 1;
23
    const STATUS_IN_PROGRESS = 2;
24
    const STATUS_TO_VALIDATE = 3;
25
    const STATUS_DONE = 4;
26
    const STATUS_CLOSED = 5;
27
28
    public function setAuthor(UserInterface $author): Feedback
29
    {
30
        $this->author = $author;
31
32
        return $this;
33
    }
34
35
    public function getAuthor(): UserInterface
36
    {
37
        return $this->author;
38
    }
39
40
    public function getType(): string
41
    {
42
        return self::TYPE_FEEDBACK;
43
    }
44
}
45