| Total Complexity | 4 |
| Total Lines | 39 |
| Duplicated Lines | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 24 | class Installer extends LibraryInstaller |
||
| 25 | { |
||
| 26 | protected $vendorPath; |
||
| 27 | |||
| 28 | /** |
||
| 29 | * Get path to the installation package |
||
| 30 | * |
||
| 31 | * {@inheritDoc} |
||
| 32 | */ |
||
| 33 | public function getInstallPath(PackageInterface $package): string |
||
| 34 | { |
||
| 35 | $this->vendorPath = parent::getInstallPath($package); |
||
| 36 | return $this->vendorPath; |
||
| 37 | } |
||
| 38 | |||
| 39 | /** |
||
| 40 | * Check type of the plugin |
||
| 41 | * |
||
| 42 | * {@inheritDoc} |
||
| 43 | */ |
||
| 44 | public function supports($packageType): bool |
||
| 45 | { |
||
| 46 | return $packageType === 'bluz-module'; |
||
| 47 | } |
||
| 48 | |||
| 49 | /** |
||
| 50 | * Get inputOutput instance |
||
| 51 | */ |
||
| 52 | public function getIo(): IOInterface |
||
| 53 | { |
||
| 54 | return $this->io; |
||
| 55 | } |
||
| 56 | |||
| 57 | /** |
||
| 58 | * Get path to current vendor |
||
| 59 | */ |
||
| 60 | public function getVendorPath() |
||
| 63 | } |
||
| 64 | } |
||
| 65 |