| Total Complexity | 3 |
| Total Lines | 23 |
| Duplicated Lines | 0 % |
| Coverage | 90% |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 13 | class GetEquipmentData |
||
| 14 | { |
||
| 15 | // Get a list of all equipment, but exclude the category name |
||
| 16 | 2 | public function getAllEquipmentNoCat($collection = false) |
|
| 17 | { |
||
| 18 | 2 | $sysList = SystemTypes::orderBy('cat_id', 'ASC')->orderBy('name', 'ASC')->get(); |
|
| 19 | 2 | Log::debug('Equipment list gathered without category list. Data Gathered - ', array($sysList)); |
|
| 20 | |||
| 21 | 2 | if($collection) |
|
| 22 | { |
||
| 23 | 2 | return new SystemTypesCollection($sysList); |
|
| 24 | } |
||
| 25 | |||
| 26 | return $sysList; |
||
| 27 | } |
||
| 28 | |||
| 29 | // Get a list of all equipment along with possible data fields |
||
| 30 | 8 | public function getAllEquipmentWithDataList() |
|
| 36 | } |
||
| 37 | } |
||
| 38 |