| Total Complexity | 5 |
| Total Lines | 39 |
| Duplicated Lines | 0 % |
| Coverage | 100% |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 10 | class GetCustomerNotes |
||
| 11 | { |
||
| 12 | protected $custID; |
||
| 13 | |||
| 14 | 4 | public function __construct($custID) |
|
| 15 | { |
||
| 16 | 4 | $this->custID = $custID; |
|
| 17 | 4 | } |
|
| 18 | |||
| 19 | // Get all notes that are assigned to the customer |
||
| 20 | 4 | public function execute() |
|
| 31 | } |
||
| 32 | |||
| 33 | // Retrieve any notes attached to the customer |
||
| 34 | 4 | protected function getLocalNotes() |
|
| 35 | { |
||
| 36 | 4 | $notes = CustomerNotes::where('cust_id', $this->custID)->orderBy('urgent', 'desc')->get(); |
|
| 37 | |||
| 38 | 4 | Log::debug('Customer Notes Query completed for customer ID '.$this->custID.'. Results - ', array($notes)); |
|
| 39 | 4 | return $notes; |
|
| 40 | } |
||
| 41 | |||
| 42 | // Retrieve any notes attached to the parent customer |
||
| 43 | 2 | protected function getParentNotes($parentID) |
|
| 49 | } |
||
| 50 | } |
||
| 51 |