| 1 | <?php |
||
| 8 | class ContactPresenter extends BasePresenter |
||
| 9 | { |
||
| 10 | 4 | public function __construct(Contact $resource) |
|
| 14 | |||
| 15 | /** |
||
| 16 | * get fullname. |
||
| 17 | * |
||
| 18 | * @return string Contact firstname and lastname |
||
| 19 | */ |
||
| 20 | 1 | public function fullname() |
|
| 24 | |||
| 25 | /** |
||
| 26 | * TODO: Check if needs to get moved to a calculator class. |
||
| 27 | * |
||
| 28 | * get Quality |
||
| 29 | * |
||
| 30 | * @return float Contact quality percentual score calculated from profile completion |
||
| 31 | */ |
||
| 32 | 1 | public function quality() |
|
| 55 | |||
| 56 | /** |
||
| 57 | * ToDo: Use Carbon instead of DateTime. |
||
| 58 | * |
||
| 59 | * get Age |
||
| 60 | * |
||
| 61 | * @return int Age in years |
||
| 62 | */ |
||
| 63 | 1 | public function age() |
|
| 80 | } |
||
| 81 |