1 | <?php |
||
20 | class ConfigurationValidationCheck implements CheckInterface |
||
21 | { |
||
22 | |||
23 | /** |
||
24 | * Configuration object |
||
25 | * |
||
26 | * @var Configuration |
||
27 | */ |
||
28 | private $configuration = ''; |
||
29 | |||
30 | /** |
||
31 | * Set of missing configuration keys |
||
32 | * |
||
33 | * @var array |
||
34 | */ |
||
35 | private $missingConfiguration = []; |
||
36 | |||
37 | 5 | public function __construct(Configuration $configuration) |
|
41 | |||
42 | /** |
||
43 | * Executes the check itselfs |
||
44 | * |
||
45 | * @return boolean |
||
46 | */ |
||
47 | 2 | public function check() |
|
68 | |||
69 | /** |
||
70 | * Returns the message, if the check succeeded |
||
71 | * |
||
72 | * @return string |
||
73 | */ |
||
74 | 1 | public function getSuccessMessage() |
|
79 | |||
80 | /** |
||
81 | * Returns the message, if the check fails |
||
82 | * |
||
83 | * @return string |
||
84 | */ |
||
85 | 1 | public function getFailureMessage() |
|
95 | |||
96 | /** |
||
97 | * Returns if this check is optional or required. |
||
98 | * |
||
99 | * @return bool |
||
100 | */ |
||
101 | 1 | public function isOptional() |
|
105 | } |
||
106 |