1 | <?php |
||
7 | abstract class Wrapper |
||
8 | { |
||
9 | |||
10 | protected $soteria; |
||
11 | private $options = []; |
||
12 | private $results = null; |
||
13 | private $score = 0; |
||
14 | private $realScore = 0; |
||
15 | private $params = []; |
||
16 | private $name; |
||
17 | private $active; |
||
18 | private $reference; |
||
19 | |||
20 | 4 | public function __construct() |
|
24 | |||
25 | 2 | public function getRealScore() |
|
33 | |||
34 | 2 | private function hasRealScore() |
|
38 | |||
39 | 4 | function setOptions($reference, $options = []) |
|
45 | |||
46 | public function inParams($name) |
||
53 | |||
54 | protected function getParams() |
||
58 | |||
59 | 4 | protected function setParams($params) |
|
64 | |||
65 | public function getRuleOption($name, $score) |
||
73 | |||
74 | public function hasRuleOption($name) |
||
78 | |||
79 | 4 | public function getResult() |
|
83 | |||
84 | protected function pushResult($result) |
||
88 | |||
89 | protected function sanitizeReference() |
||
93 | |||
94 | 4 | protected function getReference() |
|
98 | |||
99 | protected function setReference($reference) |
||
104 | |||
105 | 4 | protected function initWrapper($name) |
|
110 | |||
111 | 4 | protected function setName($name) |
|
116 | |||
117 | 4 | private function setRules() |
|
125 | |||
126 | 4 | public function getOption($name) |
|
134 | |||
135 | 4 | public function hasOption($name) |
|
139 | |||
140 | 4 | private function getName() |
|
144 | |||
145 | 4 | private function setRealScore($score) |
|
149 | |||
150 | 4 | private function setActive($active) |
|
154 | |||
155 | 2 | protected function setResult() |
|
165 | |||
166 | 2 | private function getActive() |
|
170 | |||
171 | 4 | public function getScore() |
|
179 | |||
180 | 2 | protected function setScore($score) |
|
184 | |||
185 | 4 | private function hasScore() |
|
189 | |||
190 | } |
Adding explicit visibility (
private
,protected
, orpublic
) is generally recommend to communicate to other developers how, and from where this method is intended to be used.