1 | <?php |
||
12 | class CsConfiguration implements ConfigurationInterface { |
||
13 | |||
14 | /** |
||
15 | * @var FileFinderFactoryInterface|null |
||
16 | */ |
||
17 | private $fileFinderFactory = null; |
||
18 | |||
19 | /** |
||
20 | * @var FileTool[] |
||
21 | */ |
||
22 | private $tools = []; |
||
23 | |||
24 | |||
25 | /** |
||
26 | * @return CsConfiguration |
||
27 | */ |
||
28 | public static function createFixerConfiguration() { |
||
31 | |||
32 | |||
33 | /** |
||
34 | * @return CsConfiguration |
||
35 | */ |
||
36 | public static function createReviewConfiguration() { |
||
39 | |||
40 | |||
41 | /** |
||
42 | * @inheritdoc |
||
43 | */ |
||
44 | public function getFileFinderFactory(FinderParams $finderParams) { |
||
51 | |||
52 | |||
53 | /** |
||
54 | * @param FileFinderFactoryInterface $fileFinder |
||
55 | * @return $this |
||
56 | */ |
||
57 | public function setFileFinderFactory(FileFinderFactoryInterface $fileFinder) { |
||
61 | |||
62 | |||
63 | /** |
||
64 | * @return FileTool[] |
||
65 | */ |
||
66 | public function getTools() { |
||
69 | |||
70 | |||
71 | /** |
||
72 | * @param FileTool[] $fileTools |
||
73 | * @return $this |
||
74 | */ |
||
75 | public function addTools(array $fileTools) { |
||
81 | |||
82 | |||
83 | /** |
||
84 | * @param FileTool $fileTool |
||
85 | * @return $this |
||
86 | */ |
||
87 | public function addTool(FileTool $fileTool) { |
||
96 | |||
97 | |||
98 | /** |
||
99 | * @param FileTool $fileTool |
||
100 | * @return $this |
||
101 | */ |
||
102 | public function setTool(FileTool $fileTool) { |
||
107 | |||
108 | |||
109 | /** |
||
110 | * @param string $name |
||
111 | * @return FileTool|null |
||
112 | */ |
||
113 | public function getTool($name) { |
||
120 | |||
121 | } |