1 | <?php |
||
12 | class CsConfiguration implements ConfigurationInterface { |
||
13 | |||
14 | /** |
||
15 | * @var FileFinderInterface |
||
16 | */ |
||
17 | private $fileFinder; |
||
18 | |||
19 | /** |
||
20 | * @var FileTool[] |
||
21 | */ |
||
22 | private $tools = []; |
||
23 | |||
24 | |||
25 | /** |
||
26 | * @param FileFinderInterface $fileFinder |
||
27 | */ |
||
28 | public function __construct(FileFinderInterface $fileFinder) { |
||
31 | |||
32 | |||
33 | /** |
||
34 | * @return CsConfiguration |
||
35 | */ |
||
36 | public static function createFixerConfiguration() { |
||
39 | |||
40 | |||
41 | /** |
||
42 | * @return CsConfiguration |
||
43 | */ |
||
44 | public static function createReviewConfiguration() { |
||
47 | |||
48 | |||
49 | /** |
||
50 | * @inheritdoc |
||
51 | */ |
||
52 | public function getFilesFinder() { |
||
55 | |||
56 | |||
57 | /** |
||
58 | * @param FileFinderInterface $fileFinder |
||
59 | * @return $this |
||
60 | */ |
||
61 | public function setFileFinder(FileFinderInterface $fileFinder) { |
||
65 | |||
66 | |||
67 | /** |
||
68 | * @return FileTool[] |
||
69 | */ |
||
70 | public function getTools() { |
||
73 | |||
74 | |||
75 | /** |
||
76 | * @param FileTool[] $fileTools |
||
77 | * @return $this |
||
78 | */ |
||
79 | public function addTools(array $fileTools) { |
||
85 | |||
86 | |||
87 | /** |
||
88 | * @param FileTool $fileTool |
||
89 | * @return $this |
||
90 | */ |
||
91 | public function addTool(FileTool $fileTool) { |
||
100 | |||
101 | |||
102 | /** |
||
103 | * @param FileTool $fileTool |
||
104 | * @return $this |
||
105 | */ |
||
106 | public function setTool(FileTool $fileTool) { |
||
111 | |||
112 | |||
113 | /** |
||
114 | * @param FileTool $fileTool |
||
115 | * @return $this |
||
116 | */ |
||
117 | public function removeTool(FileTool $fileTool) { |
||
122 | |||
123 | |||
124 | /** |
||
125 | * @param string $name |
||
126 | * @return FileTool|null |
||
127 | */ |
||
128 | public function getTool($name) { |
||
135 | |||
136 | } |