Total Complexity | 9 |
Total Lines | 63 |
Duplicated Lines | 0 % |
Coverage | 85.71% |
Changes | 1 | ||
Bugs | 1 | Features | 0 |
1 | <?php |
||
11 | trait HasFilesystemTrait |
||
12 | { |
||
13 | protected $filesystem; |
||
14 | |||
15 | /** |
||
16 | * @return FileDisk |
||
17 | */ |
||
18 | 7 | public function getFilesystem() |
|
25 | } |
||
26 | |||
27 | /** |
||
28 | * @param mixed $filesystem |
||
29 | */ |
||
30 | 7 | public function setFilesystem($filesystem) |
|
33 | 7 | } |
|
34 | |||
35 | /** |
||
36 | * @return mixed |
||
37 | */ |
||
38 | 7 | public function getBasePathForMedia() |
|
53 | } |
||
54 | |||
55 | 7 | /** |
|
56 | * @return string |
||
57 | 7 | */ |
|
58 | 7 | public function getMediaFilesystemDiskName() |
|
59 | { |
||
60 | return $this->getRecord()->getMediaFilesystemDiskName($this->getName()); |
||
61 | } |
||
62 | |||
63 | 7 | protected function initFilesystem() |
|
66 | } |
||
67 | |||
68 | /** |
||
69 | * @return FileDisk |
||
70 | */ |
||
71 | protected function generateFilesystem() |
||
74 | } |
||
75 | } |
||
76 |