capabilities = $capabilities; $this->composer = $composer; $this->io = $io; } /** * Get the list of capabilities that were discovered. * * @return array */ public function getCapabilities(): array { return $this->capabilities; } /** * Replace the list of capabilities that were discovered. * * You should take care to only include the correct type of capability classes here. e.g. If you're responding to * the POST_DISCOVER_DOWNLOADERS event, you should only include implementations of DownloaderInterface. * * @param array $capabilities * A complete list of capability objects. */ public function setCapabilities(array $capabilities): void { $this->capabilities = $capabilities; } /** * Returns the Composer object. * * @return Composer */ public function getComposer(): Composer { return $this->composer; } /** * Returns the IOInterface. * * @return IOInterface */ public function getIO(): IOInterface { return $this->io; } }