1 | <?php |
||
14 | class Service |
||
15 | { |
||
16 | /** |
||
17 | * @var bool |
||
18 | */ |
||
19 | private $readOnly; |
||
20 | /** |
||
21 | * @var bool |
||
22 | */ |
||
23 | private $versioning; |
||
24 | /** |
||
25 | * @var bool |
||
26 | */ |
||
27 | private $recordOriginModifiable; |
||
28 | /** |
||
29 | * @var string |
||
30 | */ |
||
31 | private $routerBase; |
||
32 | /** |
||
33 | * @var string |
||
34 | */ |
||
35 | private $parent; |
||
36 | /** |
||
37 | * @var string |
||
38 | */ |
||
39 | private $baseController; |
||
40 | /** |
||
41 | * @var string[] |
||
42 | */ |
||
43 | private $roles = []; |
||
44 | /** |
||
45 | * @var int |
||
46 | */ |
||
47 | private $fixtureOrder; |
||
48 | /** |
||
49 | * @var array[] |
||
50 | */ |
||
51 | private $fixtures = []; |
||
52 | /** |
||
53 | * @var string |
||
54 | */ |
||
55 | private $collectionName; |
||
56 | |||
57 | /** |
||
58 | * @return string |
||
59 | */ |
||
60 | public function getParent() |
||
64 | |||
65 | /** |
||
66 | * @param string $parent Parent service ID |
||
67 | * @return $this |
||
68 | */ |
||
69 | public function setParent($parent) |
||
74 | |||
75 | /** |
||
76 | * @return string |
||
77 | */ |
||
78 | 4 | public function getBaseController() |
|
82 | |||
83 | /** |
||
84 | * @param string $baseController Base controller class |
||
85 | * @return $this |
||
86 | */ |
||
87 | public function setBaseController($baseController) |
||
92 | |||
93 | /** |
||
94 | * @return bool |
||
95 | */ |
||
96 | 4 | public function getReadOnly() |
|
100 | |||
101 | /** |
||
102 | * @param bool $readOnly Is readOnly service |
||
103 | * @return $this |
||
104 | */ |
||
105 | public function setReadOnly($readOnly) |
||
110 | |||
111 | /** |
||
112 | * @return bool |
||
113 | */ |
||
114 | 22 | public function getVersioning() |
|
118 | |||
119 | /** |
||
120 | * @param bool $versioning Is a versioned service |
||
121 | * @return $this |
||
122 | */ |
||
123 | public function setVersioning($versioning) |
||
128 | |||
129 | /** |
||
130 | * @return bool |
||
131 | */ |
||
132 | public function getRecordOriginModifiable() |
||
136 | |||
137 | /** |
||
138 | * @param bool $recordOriginModifiable Is origin record modifiable |
||
139 | * @return $this |
||
140 | */ |
||
141 | public function setRecordOriginModifiable($recordOriginModifiable) |
||
147 | |||
148 | /** |
||
149 | * @return string |
||
150 | */ |
||
151 | 8 | public function getRouterBase() |
|
155 | |||
156 | /** |
||
157 | * @param string $routerBase Base URL |
||
158 | * @return $this |
||
159 | */ |
||
160 | public function setRouterBase($routerBase) |
||
165 | |||
166 | /** |
||
167 | * @return string[] |
||
168 | */ |
||
169 | 2 | public function getRoles() |
|
173 | |||
174 | /** |
||
175 | * @param string[] $roles Service roles |
||
176 | * @return $this |
||
177 | */ |
||
178 | public function setRoles(array $roles) |
||
183 | |||
184 | /** |
||
185 | * @return int |
||
186 | */ |
||
187 | 4 | public function getFixtureOrder() |
|
191 | |||
192 | /** |
||
193 | * @param int $fixtureOrder Fixture order |
||
194 | * @return $this |
||
195 | */ |
||
196 | public function setFixtureOrder($fixtureOrder) |
||
201 | |||
202 | /** |
||
203 | * @return array[] |
||
204 | */ |
||
205 | 4 | public function getFixtures() |
|
209 | |||
210 | /** |
||
211 | * @param array[] $fixtures Fixtures |
||
212 | * @return $this |
||
213 | */ |
||
214 | public function setFixtures(array $fixtures) |
||
219 | |||
220 | /** |
||
221 | * @return string |
||
222 | */ |
||
223 | public function getCollectionName() |
||
227 | |||
228 | /** |
||
229 | * @param string $collectionName name of colleciton |
||
230 | * @return $this |
||
231 | */ |
||
232 | public function setCollectionName($collectionName) |
||
237 | } |
||
238 |
This check examines a number of code elements and verifies that they conform to the given naming conventions.
You can set conventions for local variables, abstract classes, utility classes, constant, properties, methods, parameters, interfaces, classes, exceptions and special methods.