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