| Total Complexity | 4 |
| Total Lines | 35 |
| Duplicated Lines | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 7 | class EnrollmentPresenter extends Presenter |
||
| 8 | { |
||
| 9 | /** |
||
| 10 | * Get the shift tag of this enrollment. |
||
| 11 | * |
||
| 12 | * @param string $placeholder |
||
| 13 | * |
||
| 14 | * @return string |
||
| 15 | */ |
||
| 16 | public function getShiftTag($placeholder = '---') |
||
| 17 | { |
||
| 18 | return $this->entity->shift_id ? $this->entity->shift->tag : $placeholder; |
||
| 19 | } |
||
| 20 | |||
| 21 | /** |
||
| 22 | * Get the formatted date of the last update of this enrollment. |
||
| 23 | * |
||
| 24 | * @return string |
||
| 25 | */ |
||
| 26 | public function getUpdatedAt() |
||
| 29 | } |
||
| 30 | |||
| 31 | /** |
||
| 32 | * Get the string representation of the enrollment. |
||
| 33 | * |
||
| 34 | * @return string |
||
| 35 | */ |
||
| 36 | public function inlineToString() |
||
| 42 | } |
||
| 43 | } |
||
| 44 |