Completed
Push — develop ( f742d2...37f3f5 )
by Axel
8s
created

Feedback   A

Complexity

Total Complexity 3

Size/Duplication

Total Lines 42
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 1

Test Coverage

Coverage 100%

Importance

Changes 2
Bugs 0 Features 0
Metric Value
wmc 3
c 2
b 0
f 0
lcom 0
cbo 1
dl 0
loc 42
ccs 8
cts 8
cp 1
rs 10

3 Methods

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