Atdconnect::getLocation()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 3
Code Lines 1

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 1
Metric Value
cc 1
eloc 1
c 1
b 0
f 1
nc 1
nop 0
dl 0
loc 3
rs 10
1
<?php
2
3
namespace Nickcheek\Atdconnect;
4
5
use Nickcheek\Atdconnect\Services\Brand;
6
use Nickcheek\Atdconnect\Services\Location;
7
use Nickcheek\Atdconnect\Services\Order;
8
use Nickcheek\Atdconnect\Services\Product;
9
use Nickcheek\Atdconnect\Services\Status;
10
use Nickcheek\Atdconnect\Services\Vehicle;
11
use Nickcheek\Atdconnect\Arraybuilder;
12
13
class Atdconnect
14
{
15
    
16
    protected $location;
17
    
18
19
    public function __construct()
20
    {
21
        $config = include('config/config.php');
22
        $this->location = $config->location;
23
    }
24
    
25
    public function setLocation($location)
26
    {
27
	    $this->location = $location;
28
        return $this->location;
29
    }
30
    
31
    public function getLocation()
32
    {
33
	    return $this->location;
34
    }
35
    
36
    public function setKeywordSearch($word)
37
    {
38
	    $search = new Arraybuilder();
39
	    return $search->setKeywordSearch($word);
40
    }
41
    
42
    public function setATDProductNumber($number)
43
    {
44
	    $search = new Arraybuilder();
45
	    return $search->setATDProductNumber($number);
46
    }
47
    
48
    public function setSizeSearch($size)
49
    {
50
	    $search = new Arraybuilder();
51
	    return $search->setSizeSearch($size);
52
    }
53
54
    public function Brand() {
55
    	return new Brand;
56
    }
57
    
58
    public function Location() {
59
    	return new Location;
60
    }
61
    
62
    public function Order() {
63
    	return new Order;
64
    }
65
    
66
    public function Product() {
67
    	return new Product;
68
    }
69
    
70
    public function Status() {
71
    	return new Status;
72
    }
73
	
74
	public function Vehicle() {
75
    	return new Vehicle;
76
    }
77
    
78
}
79