| Conditions | 3 |
| Paths | 2 |
| Total Lines | 11 |
| Code Lines | 5 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 34 | public function __construct(FileSystemInfoInterface $fsInfo) |
||
| 35 | { |
||
| 36 | $requiredClass = static::FILE_SYSTEM_INFO_CLASS; |
||
| 37 | |||
| 38 | if (empty($requiredClass) || !$fsInfo instanceof $requiredClass) { |
||
|
|
|||
| 39 | throw new StorageException( |
||
| 40 | \sprintf('Wrong filesystem info `%s` provided for `%s`', get_class($fsInfo), static::class) |
||
| 41 | ); |
||
| 42 | } |
||
| 43 | |||
| 44 | $this->fsInfo = $fsInfo; |
||
| 45 | } |
||
| 47 |