From c438120c695fab843cef5ed390a66a31849f9929 Mon Sep 17 00:00:00 2001 From: Paul Seiffert Date: Tue, 8 May 2012 22:41:37 +0200 Subject: [PATCH] Added comments to Composer class in order to make it IDE friendlier. Also added missing property 'config'. --- src/Composer/Composer.php | 60 +++++++++++++++++++++++++++++++++++++++ 1 file changed, 60 insertions(+) diff --git a/src/Composer/Composer.php b/src/Composer/Composer.php index 0ad14c450..61e0b0f7a 100644 --- a/src/Composer/Composer.php +++ b/src/Composer/Composer.php @@ -26,68 +26,128 @@ class Composer { const VERSION = '@package_version@'; + /** + * @var Package\PackageInterface + */ private $package; + + /** + * @var Locker + */ private $locker; + /** + * @var Repository\RepositoryManager + */ private $repositoryManager; + + /** + * @var Downloader\DownloadManager + */ private $downloadManager; + + /** + * @var Installer\InstallationManager + */ private $installationManager; + /** + * @var Config + */ + private $config; + + /** + * @param Package\PackageInterface $package + * @return void + */ public function setPackage(PackageInterface $package) { $this->package = $package; } + /** + * @return Package\PackageInterface + */ public function getPackage() { return $this->package; } + /** + * @param Config $config + */ public function setConfig(Config $config) { $this->config = $config; } + /** + * @return Config + */ public function getConfig() { return $this->config; } + /** + * @param Package\Locker $locker + */ public function setLocker(Locker $locker) { $this->locker = $locker; } + /** + * @return Package\Locker + */ public function getLocker() { return $this->locker; } + /** + * @param Repository\RepositoryManager $manager + */ public function setRepositoryManager(RepositoryManager $manager) { $this->repositoryManager = $manager; } + /** + * @return Repository\RepositoryManager + */ public function getRepositoryManager() { return $this->repositoryManager; } + /** + * @param Downloader\DownloadManager $manager + */ public function setDownloadManager(DownloadManager $manager) { $this->downloadManager = $manager; } + /** + * @return Doenloader\DownloadManager + */ public function getDownloadManager() { return $this->downloadManager; } + /** + * @param Installer\InstallationManager $manager + */ public function setInstallationManager(InstallationManager $manager) { $this->installationManager = $manager; } + /** + * @return Installer\InstallationManager + */ public function getInstallationManager() { return $this->installationManager;