| Total Complexity | 4 |
| Total Lines | 34 |
| Duplicated Lines | 0 % |
| Coverage | 100% |
| Changes | 2 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 9 | class GetCustomerNotes extends GetCustomerDetails |
||
| 10 | { |
||
| 11 | // Get all notes belonging to a customer or shared notes belonging to its parent |
||
| 12 | 6 | public function execute($custID) |
|
| 23 | } |
||
| 24 | |||
| 25 | // Get the details of a single note |
||
| 26 | 2 | public function getOneNote($noteID) |
|
| 27 | { |
||
| 28 | 2 | $note = CustomerNotes::findOrFail($noteID); |
|
| 29 | 2 | Log::debug('Note ID '.$noteID.' pulled for Customer ID '.$note->cust_id.'. Data - ', $note->toArray()); |
|
| 30 | 2 | return $note; |
|
| 31 | } |
||
| 32 | |||
| 33 | // Get the notes for the specified customer |
||
| 34 | 6 | protected function getNotes($custID, $shared = false) |
|
| 43 | } |
||
| 44 | } |
||
| 45 |