1 | <?php |
||
10 | abstract class AbstractCheck implements CheckInterface |
||
11 | { |
||
12 | /** |
||
13 | * @var null|string |
||
14 | */ |
||
15 | protected $checkNode = self::CHECK_NODE_DEFAULT; |
||
16 | |||
17 | /** |
||
18 | * @var ResultInterface |
||
19 | */ |
||
20 | protected $lastCheckResult = null; |
||
21 | |||
22 | /** |
||
23 | * AbstractCheck constructor. |
||
24 | * |
||
25 | * @param null $checkNode |
||
26 | */ |
||
27 | 7 | public function __construct($checkNode = null) |
|
33 | |||
34 | /** |
||
35 | * @return string |
||
36 | */ |
||
37 | 2 | public function getCheckComponent() |
|
41 | |||
42 | /** |
||
43 | * @return string |
||
44 | */ |
||
45 | 1 | public function getCheckGroup() |
|
49 | |||
50 | /** |
||
51 | * @return null|string |
||
52 | */ |
||
53 | 2 | public function getCheckNode() |
|
57 | |||
58 | /** |
||
59 | * @return string |
||
60 | */ |
||
61 | 2 | public function getCheckIdent() |
|
65 | |||
66 | /** |
||
67 | * @return null|string |
||
68 | */ |
||
69 | 1 | public function getIndent() |
|
73 | |||
74 | /** |
||
75 | * @return null|string |
||
76 | */ |
||
77 | 1 | public function getLabel() |
|
86 | |||
87 | /** |
||
88 | * @return ResultInterface |
||
89 | */ |
||
90 | 1 | public function getLastCheckResult() |
|
94 | |||
95 | /** |
||
96 | * @return ResultInterface |
||
97 | */ |
||
98 | 4 | public function check() |
|
114 | |||
115 | /** |
||
116 | * @param string $checkNode |
||
117 | */ |
||
118 | 7 | protected function setCheckNode($checkNode) |
|
122 | |||
123 | /** |
||
124 | * @param ResultInterface $lastCheckResult |
||
125 | */ |
||
126 | 4 | protected function setLastCheckResult(ResultInterface $lastCheckResult) |
|
130 | } |
||
131 |