1 | <?php |
||
16 | final class File extends BaseFile implements FileInterface |
||
17 | { |
||
18 | /** |
||
19 | * @var string |
||
20 | */ |
||
21 | public $tokenizerType = 'PHP'; |
||
22 | |||
23 | /** |
||
24 | * @var Fixer |
||
25 | */ |
||
26 | public $fixer; |
||
27 | |||
28 | /** |
||
29 | * @var ErrorDataCollector |
||
30 | */ |
||
31 | private $errorDataCollector; |
||
32 | |||
33 | /** |
||
34 | * @var bool |
||
35 | */ |
||
36 | private $isFixer; |
||
37 | |||
38 | 14 | public function __construct(string $path, array $tokens, Fixer $fixer, ErrorDataCollector $errorDataCollector, bool $isFixer, string $eolChar) |
|
50 | |||
51 | /** |
||
52 | * {@inheritdoc} |
||
53 | */ |
||
54 | 1 | public function parse() |
|
61 | |||
62 | /** |
||
63 | * {@inheritdoc} |
||
64 | */ |
||
65 | 1 | public function process() |
|
72 | |||
73 | /** |
||
74 | * {@inheritdoc} |
||
75 | */ |
||
76 | 1 | public function getErrorCount() |
|
84 | |||
85 | /** |
||
86 | * {@inheritdoc} |
||
87 | */ |
||
88 | 1 | public function getErrors() |
|
96 | |||
97 | /** |
||
98 | * {@inheritdoc} |
||
99 | */ |
||
100 | 1 | public function addFixableError($error, $stackPtr, $code, $data = [], $severity = 0) |
|
105 | |||
106 | /** |
||
107 | * {@inheritdoc} |
||
108 | */ |
||
109 | 1 | protected function addMessage($error, $message, $line, $column, $code, $data, $severity, $isFixable = false) : bool |
|
119 | } |
||
120 |