1 | <?php |
||
12 | abstract class BaseImplementation implements OutputInterface |
||
13 | { |
||
14 | /** |
||
15 | * @var integer |
||
16 | */ |
||
17 | protected $maxValue = 0; |
||
18 | |||
19 | /** |
||
20 | * @var integer |
||
21 | */ |
||
22 | protected $minValue = 0; |
||
23 | |||
24 | /** |
||
25 | * @param array $options |
||
26 | */ |
||
27 | 39 | public function __construct(array $options = []) |
|
30 | |||
31 | /** |
||
32 | * {@inheritdoc} |
||
33 | */ |
||
34 | 39 | public function output($value) |
|
40 | |||
41 | /** |
||
42 | * Validate given value |
||
43 | * |
||
44 | * @param integer $value |
||
45 | * @return void |
||
46 | */ |
||
47 | 37 | protected function validate($value) |
|
54 | |||
55 | /** |
||
56 | * Serialize a valid value into a character |
||
57 | * |
||
58 | * @param integer $value |
||
59 | * @return string |
||
60 | */ |
||
61 | abstract protected function outputValidValue($value); |
||
62 | } |
This check looks from parameters that have been defined for a function or method, but which are not used in the method body.