| 1 | <?php |
||
| 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() |
|
| 50 | |||
| 51 | /** |
||
| 52 | * @return string |
||
| 53 | */ |
||
| 54 | 1 | public function getType() { |
|
| 57 | } |
||
| 58 |