1 | <?php |
||
8 | abstract class Plugin |
||
9 | { |
||
10 | protected $config = []; |
||
11 | |||
12 | protected $attributes = []; |
||
13 | |||
14 | protected $files; |
||
15 | |||
16 | protected $useSortFixer; |
||
17 | |||
18 | 3 | public function setConfig($config) |
|
19 | { |
||
20 | 3 | $this->config = $config; |
|
21 | |||
22 | 3 | return $this; |
|
23 | } |
||
24 | |||
25 | 3 | public function setAttributes($attributes) |
|
26 | { |
||
27 | 3 | $this->attributes = $attributes; |
|
28 | |||
29 | 3 | return $this; |
|
30 | } |
||
31 | |||
32 | 3 | public function setFilesystem(Filesystem $files) |
|
33 | { |
||
34 | 3 | $this->files = $files; |
|
35 | |||
36 | 3 | return $this; |
|
37 | } |
||
38 | |||
39 | 3 | public function setUseSortFixer(UseSortFixer $useSortFixer) |
|
40 | { |
||
41 | 3 | $this->useSortFixer = $useSortFixer; |
|
42 | 3 | $this->useSortFixer->setSortType(UseSortFixer::SORT_TYPE_LENGTH); |
|
43 | |||
44 | 3 | return $this; |
|
45 | } |
||
46 | |||
47 | abstract public function process(); |
||
48 | } |
||
49 |