| Conditions | 2 |
| Paths | 2 |
| Total Lines | 7 |
| Code Lines | 4 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 4 |
| CRAP Score | 2.032 |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 20 | 2 | public function __construct(FilesystemAdapter $filesystemAdapter) |
|
| 21 | { |
||
| 22 | 2 | $adapter = $filesystemAdapter->getAdapter(); |
|
| 23 | 2 | if (!$adapter instanceof AliyunAdapter) { |
|
| 24 | throw new AliyunException("Adapter expect AliyunAdapter, But got ".$adapter::class, 0); |
||
| 25 | } |
||
| 26 | 2 | $this->adapter = $adapter; |
|
| 27 | } |
||
| 64 |