| Conditions | 2 |
| Paths | 2 |
| Total Lines | 9 |
| Code Lines | 4 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 25 | protected function getUploadComponent(): UploadComponentInterface |
||
| 26 | { |
||
| 27 | $uploadComponent = $this->module->get('local-upload-component'); |
||
| 28 | |||
| 29 | if (!($uploadComponent instanceof UploadComponentInterface)) { |
||
| 30 | throw new InvalidConfigException("local-upload-component must be implemented of UploadComponentInterface."); |
||
| 31 | } |
||
| 32 | |||
| 33 | return $uploadComponent; |
||
| 34 | } |
||
| 36 |