HelperFunctions   A
last analyzed

Complexity

Total Complexity 6

Size/Duplication

Total Lines 21
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 1

Importance

Changes 0
Metric Value
dl 0
loc 21
c 0
b 0
f 0
wmc 6
lcom 0
cbo 1
rs 10

6 Methods

Rating   Name   Duplication   Size   Complexity  
A getItems() 0 3 1
A totalRows() 0 3 1
A totalServices() 0 3 1
A getServices() 0 3 1
A getOrders() 0 3 1
A getCustomers() 0 3 1
1
<?php
2
/**
3
 * m'Manager | Invoices Management System
4
 * 
5
 * This content is released under the Proprietary License (Proprietary)
6
 *
7
 * Copyright (c) 2017, Eric Claver AKAFFOU - All Rights Reserved
8
 * Unauthorized copying of this file, via any medium is strictly prohibited
9
 * Proprietary and confidential
10
 * 
11
 * @package m'Manager
12
 * @author  Eric Claver AKAFFOU
13
 * @copyright   Copyright (c) 2017, on'Eric Computing, Inc. (https://www.onericcomputing.com/)
14
 * @license https://www.mmanager.fr  Proprietary License
15
 * @link    https://codecanyon.net/item/mmanager-invoices-management-system/19866435?s_rank=1
16
 * @since   Version 1.0.0
17
 * @filesource
18
 */
19
 
20
 namespace Mmanager\Persistence\Adapter\CodeIgniter;
21
22
 use Mmanager\Persistence\Adapter\CodeIgniter\CIQueryBuilder;
23
 use Mmanager\Contract\HelperFunctionsInterface;
24
25
 /**
26
  * Abstract Repository Class
27
  */
28
 class HelperFunctions extends CIQueryBuilder implements HelperFunctionsInterface
29
 {
30
 	public function getItems() {
31
 		return get_items();
32
 	}
33
 	public function totalRows($table) {
34
 		return count_total_rows($table);
35
 	}
36
 	public function totalServices() {
37
 		return count($this->getServices());
38
 	}
39
 	public function getServices() {
40
 		return get_services();
41
 	}
42
 	public function getOrders($filter) {
43
 		return get_sales($filter);
44
 	}
45
 	public function getCustomers($filter) {
46
 		return clients($filter);
47
 	}
48
 }