Completed
Pull Request — develop (#605)
by
unknown
05:24
created

ProxyModel::setName()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 0
CRAP Score 2

Importance

Changes 0
Metric Value
dl 0
loc 4
ccs 0
cts 4
cp 0
rs 10
c 0
b 0
f 0
cc 1
eloc 2
nc 1
nop 1
crap 2
1
<?php
2
/**
3
 * Schema Class for output data.
4
 */
5
namespace Graviton\ProxyApiBundle\Model;
6
7
use Graviton\ProxyApiBundle\Processor\PostProcessorInterface;
8
use Graviton\ProxyApiBundle\Processor\PreProcessorInterface;
9
use Graviton\ProxyApiBundle\Processor\ProxyProcessorInterface;
10
11
/**
12
 * Schema
13
 *
14
 * @author   List of contributors <https://github.com/libgraviton/graviton/graphs/contributors>
15
 * @license  http://opensource.org/licenses/gpl-license.php GNU Public License
16
 * @link     http://swisscom.ch
17
 */
18
class ProxyModel
19
{
20
    protected $name;
21
    protected $prefix;
22
    protected $uri;
23
    protected $apiKey;
24
    protected $queryStringTemplate;
25
    protected $serviceEndpoint;
26
27
    // Service processing
28
    /** @var PreProcessorInterface */
29
    protected $preProcessorService;
30
    protected $proxyProcessorService;
31
    protected $postProcessorService;
32
33
    /**
34
     * @return mixed
0 ignored issues
show
Documentation introduced by
Consider making the return type a bit more specific; maybe use string.

This check looks for the generic type array as a return type and suggests a more specific type. This type is inferred from the actual code.

Loading history...
35
     */
36
    public function getName()
37
    {
38
        return $this->name;
39
    }
40
41
    /**
42
     * @param string $name setter
43
     * @return void
44
     */
45
    public function setName($name)
46
    {
47
        $this->name = $name;
48
    }
49
50
    /**
51
     * @return mixed
52
     */
53
    public function getPrefix()
54
    {
55
        return $this->prefix;
56
    }
57
58
    /**
59
     * @param mixed $prefix setter
60
     * @return void
61
     */
62
    public function setPrefix($prefix)
63
    {
64
        $this->prefix = $prefix;
65
    }
66
67
    /**
68
     * @return mixed
69
     */
70
    public function getUri()
71
    {
72
        return $this->uri;
73
    }
74
75
    /**
76
     * @param mixed $uri setter
77
     * @return void
78
     */
79
    public function setUri($uri)
80
    {
81
        $this->uri = $uri;
82
    }
83
84
    /**
85
     * @return mixed
86
     */
87
    public function getApiKey()
88
    {
89
        return $this->apiKey;
90
    }
91
92
    /**
93
     * @param mixed $apiKey setter
94
     * @return void
95
     */
96
    public function setApiKey($apiKey)
97
    {
98
        $this->apiKey = $apiKey;
99
    }
100
101
    /**
102
     * @return mixed
103
     */
104
    public function getQueryStringTemplate()
105
    {
106
        return $this->queryStringTemplate;
107
    }
108
109
    /**
110
     * @param mixed $queryStringTemplate setter
111
     * @return void
112
     */
113
    public function setQueryStringTemplate($queryStringTemplate)
114
    {
115
        $this->queryStringTemplate = $queryStringTemplate;
116
    }
117
118
    /**
119
     * @return mixed
120
     */
121
    public function getServiceEndpoint()
122
    {
123
        return $this->serviceEndpoint;
124
    }
125
126
    /**
127
     * @param mixed $serviceEndpoint setter
128
     * @return void
129
     */
130
    public function setServiceEndpoint($serviceEndpoint)
131
    {
132
        $this->serviceEndpoint = $serviceEndpoint;
133
    }
134
135
    /**
136
     * Object Processor
137
     *
138
     * @return PreProcessorInterface setter
139
     */
140
    public function getPreProcessorService()
141
    {
142
        return $this->preProcessorService;
143
    }
144
145
    /**
146
     * @param PreProcessorInterface $preProcessorService setter
147
     * @return void
148
     */
149
    public function setPreProcessorService(PreProcessorInterface $preProcessorService)
150
    {
151
        $this->preProcessorService = $preProcessorService;
152
    }
153
154
    /**
155
     * Object Processor
156
     *
157
     * @return ProxyProcessorInterface
158
     */
159
    public function getProxyProcessorService()
160
    {
161
        return $this->proxyProcessorService;
162
    }
163
164
    /**
165
     * @param ProxyProcessorInterface $proxyProcessorService setter
166
     * @return void
167
     */
168
    public function setProxyProcessorService($proxyProcessorService)
169
    {
170
        $this->proxyProcessorService = $proxyProcessorService;
171
    }
172
173
    /**
174
     * Object Processor
175
     *
176
     * @return PostProcessorInterface
177
     */
178
    public function getPostProcessorService()
179
    {
180
        return $this->postProcessorService;
181
    }
182
183
    /**
184
     * @param PostProcessorInterface $postProcessorService setter
185
     * @return void
186
     */
187
    public function setPostProcessorService($postProcessorService)
188
    {
189
        $this->postProcessorService = $postProcessorService;
190
    }
191
}
192