Completed
Push — master ( 651cee...b2acd3 )
by Axel
05:20 queued 02:47
created

Feedback::getAuthor()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 2
CRAP Score 1

Importance

Changes 1
Bugs 0 Features 0
Metric Value
c 1
b 0
f 0
dl 0
loc 4
ccs 2
cts 2
cp 1
rs 10
cc 1
eloc 2
nc 1
nop 0
crap 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 5
      public function setAuthor(UserInterface $author)
35
      {
36 5
          $this->author = $author;
37
38 5
          return $this;
39
      }
40
41
      /**
42
       * Get author
43
       *
44
       * @return UserInterface
45
       */
46 3
      public function getAuthor()
47
      {
48 3
          return $this->author;
49
      }
50
51
      /**
52
       * @return string
53
       */
54 1
      public function getType() {
55 1
          return self::TYPE_FEEDBACK;
56
      }
57
}
58