1 | <?php |
||
8 | class Config { |
||
9 | private $properties = []; |
||
10 | private $pseudo = []; |
||
11 | private $functionSet; |
||
12 | private $headers; |
||
13 | private $formatter; |
||
14 | private $baseDir; |
||
|
|||
15 | private $line = 0; |
||
16 | private $elementData; |
||
17 | private $xPath; |
||
18 | private $valueParser; |
||
19 | |||
20 | public function __construct(Functionset $functionSet, Parser\Value $valueParser, Hook\ElementData $elementData, Hook\Formatter $formatter, Parser\CssToXpath $xPath, FilePath $filePath, &$headers) { |
||
21 | $this->formatter = $formatter; |
||
22 | $this->headers = &$headers; |
||
23 | $this->filePath = $filePath; |
||
24 | $this->functionSet = $functionSet; |
||
25 | $this->elementData = $elementData; |
||
26 | $this->xPath = $xPath; |
||
27 | $this->valueParser = $valueParser; |
||
28 | } |
||
29 | |||
30 | public function getFormatter() { |
||
33 | |||
34 | public function &getHeaders() { |
||
37 | |||
38 | public function getFilePath() { |
||
39 | return $this->filePath; |
||
40 | } |
||
41 | |||
42 | public function &getLine() { |
||
45 | |||
46 | public function registerFormatter($formatter) { |
||
49 | |||
50 | public function getFunctionSet() { |
||
53 | |||
54 | public function getElementData() { |
||
57 | |||
58 | public function getCssToXpath() { |
||
61 | |||
62 | public function getValueParser() { |
||
65 | |||
66 | public function registerProperty($name, Property $property) { |
||
69 | |||
70 | public function registerPseudo(Pseudo $pseudo) { |
||
73 | |||
74 | public function loadProperties(Hook\PropertyHook $hook) { |
||
77 | |||
78 | public function createPseudoMatcher($pseudo) { |
||
83 | |||
84 | } |
||
85 |
This check marks private properties in classes that are never used. Those properties can be removed.