1 | <?php |
||
11 | class CsConfiguration implements ConfigurationInterface { |
||
12 | |||
13 | /** |
||
14 | * @var FileFinderFactoryInterface|null |
||
15 | */ |
||
16 | private $fileFinderFactory = null; |
||
17 | |||
18 | /** |
||
19 | * @var ToolConfigurationInterface[] |
||
20 | */ |
||
21 | private $toolsConfiguration = []; |
||
22 | |||
23 | |||
24 | /** |
||
25 | * @return CsConfiguration |
||
26 | */ |
||
27 | public static function createFixerConfiguration() { |
||
30 | |||
31 | |||
32 | /** |
||
33 | * @return CsConfiguration |
||
34 | */ |
||
35 | public static function createReviewConfiguration() { |
||
38 | |||
39 | |||
40 | /** |
||
41 | * @inheritdoc |
||
42 | */ |
||
43 | public function getFileFinderFactory(FinderParams $finderParams) { |
||
50 | |||
51 | |||
52 | /** |
||
53 | * @param FileFinderFactoryInterface $fileFinder |
||
54 | * @return $this |
||
55 | */ |
||
56 | public function setFileFinderFactory(FileFinderFactoryInterface $fileFinder) { |
||
60 | |||
61 | |||
62 | /** |
||
63 | * @return ToolConfigurationInterface[] |
||
64 | */ |
||
65 | public function getToolsConfiguration() { |
||
68 | |||
69 | |||
70 | /** |
||
71 | * @param ToolConfigurationInterface[] $toolsConfigurations |
||
72 | * @return $this |
||
73 | */ |
||
74 | public function addToolsConfigurations(array $toolsConfigurations) { |
||
80 | |||
81 | |||
82 | /** |
||
83 | * @param ToolConfigurationInterface $toolConfiguration |
||
84 | * @return $this |
||
85 | */ |
||
86 | public function addToolConfiguration(ToolConfigurationInterface $toolConfiguration) { |
||
95 | |||
96 | |||
97 | /** |
||
98 | * @param string $name |
||
99 | * @return ToolConfigurationInterface|null |
||
100 | */ |
||
101 | public function getToolConfiguration($name) { |
||
107 | |||
108 | } |