Passed
Push — master ( d96c82...9f15a7 )
by Nicholas
01:44
created

Atdconnect::Location()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 2
Code Lines 1

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
cc 1
eloc 1
nc 1
nop 0
dl 0
loc 2
rs 10
c 0
b 0
f 0
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;
0 ignored issues
show
Bug introduced by
The type Nickcheek\Atdconnect\Services\Vehicle was not found. Maybe you did not declare it correctly or list all dependencies?

The issue could also be caused by a filter entry in the build configuration. If the path has been excluded in your configuration, e.g. excluded_paths: ["lib/*"], you can move it to the dependency path list as follows:

filter:
    dependency_paths: ["lib/*"]

For further information see https://scrutinizer-ci.com/docs/tools/php/php-scrutinizer/#list-dependency-paths

Loading history...
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