| Total Complexity | 3 |
| Total Lines | 34 |
| Duplicated Lines | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 1 |
| 1 | <?php |
||
| 9 | class Installer |
||
| 10 | { |
||
| 11 | private const CONFIG_MODULES_PATH_NAME = 'modules.paths.modules'; |
||
| 12 | |||
| 13 | /** @var MarketplaceService */ |
||
| 14 | private $marketplaceService; |
||
| 15 | |||
| 16 | /** @var Archiver */ |
||
| 17 | private $archiver; |
||
| 18 | |||
| 19 | public function __construct(MarketplaceService $marketplaceService, Archiver $archiver) |
||
| 20 | { |
||
| 21 | $this->marketplaceService = $marketplaceService; |
||
| 22 | $this->archiver = $archiver; |
||
| 23 | } |
||
| 24 | |||
| 25 | /** |
||
| 26 | * @throws GameapException |
||
| 27 | * @throws \Gameap\Exceptions\InvalidArgumentValueException |
||
| 28 | * @throws \splitbrain\PHPArchive\ArchiveCorruptedException |
||
| 29 | * @throws \splitbrain\PHPArchive\ArchiveIOException |
||
| 30 | * @throws \splitbrain\PHPArchive\ArchiveIllegalCompressionException |
||
| 31 | */ |
||
| 32 | public function install(string $moduleID, string $version = ''): void |
||
| 43 | } |
||
| 44 | } |
||
| 45 |