| Total Complexity | 5 |
| Total Lines | 27 |
| Duplicated Lines | 0 % |
| Coverage | 100% |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 7 | trait HasFileModel |
||
| 8 | { |
||
| 9 | protected string $fileModelData = ''; |
||
| 10 | |||
| 11 | 1 | public function useStoreFile(ExportStoredFile $file): static |
|
| 12 | { |
||
| 13 | 1 | return $this->setFileModelData(serialize($file)); |
|
| 14 | } |
||
| 15 | |||
| 16 | 1 | public function setFileModelData(string $fileModelData): static |
|
| 17 | { |
||
| 18 | 1 | $this->fileModelData = $fileModelData; |
|
| 19 | |||
| 20 | 1 | return $this; |
|
| 21 | } |
||
| 22 | |||
| 23 | 1 | protected function saveFileFromModel(): ?ExportStoredFile |
|
| 34 | } |
||
| 35 | } |
||
| 36 |