1 | <?php |
||
5 | class SoteriaModel |
||
6 | { |
||
7 | private $input = ''; |
||
8 | private $output = ''; |
||
9 | private $passed = true; |
||
10 | |||
11 | |||
12 | 1 | function __construct($input, $output, $passed = true) |
|
18 | |||
19 | /** |
||
20 | * @return string |
||
21 | */ |
||
22 | public function getInput() |
||
26 | |||
27 | /** |
||
28 | * @return mixed |
||
29 | */ |
||
30 | public function getResult() |
||
34 | |||
35 | /** |
||
36 | * @return string |
||
37 | */ |
||
38 | public function getOutput() |
||
42 | |||
43 | /** |
||
44 | * @return bool |
||
45 | */ |
||
46 | 1 | public function isValid() |
|
50 | |||
51 | } |
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.