1
0
Fork 0

Added comments to Composer class in order to make it IDE friendlier. Also added missing property 'config'.

pull/665/head
Paul Seiffert 2012-05-08 22:41:37 +02:00
parent 6967ec16b3
commit c438120c69
1 changed files with 60 additions and 0 deletions

View File

@ -26,68 +26,128 @@ class Composer
{ {
const VERSION = '@package_version@'; const VERSION = '@package_version@';
/**
* @var Package\PackageInterface
*/
private $package; private $package;
/**
* @var Locker
*/
private $locker; private $locker;
/**
* @var Repository\RepositoryManager
*/
private $repositoryManager; private $repositoryManager;
/**
* @var Downloader\DownloadManager
*/
private $downloadManager; private $downloadManager;
/**
* @var Installer\InstallationManager
*/
private $installationManager; private $installationManager;
/**
* @var Config
*/
private $config;
/**
* @param Package\PackageInterface $package
* @return void
*/
public function setPackage(PackageInterface $package) public function setPackage(PackageInterface $package)
{ {
$this->package = $package; $this->package = $package;
} }
/**
* @return Package\PackageInterface
*/
public function getPackage() public function getPackage()
{ {
return $this->package; return $this->package;
} }
/**
* @param Config $config
*/
public function setConfig(Config $config) public function setConfig(Config $config)
{ {
$this->config = $config; $this->config = $config;
} }
/**
* @return Config
*/
public function getConfig() public function getConfig()
{ {
return $this->config; return $this->config;
} }
/**
* @param Package\Locker $locker
*/
public function setLocker(Locker $locker) public function setLocker(Locker $locker)
{ {
$this->locker = $locker; $this->locker = $locker;
} }
/**
* @return Package\Locker
*/
public function getLocker() public function getLocker()
{ {
return $this->locker; return $this->locker;
} }
/**
* @param Repository\RepositoryManager $manager
*/
public function setRepositoryManager(RepositoryManager $manager) public function setRepositoryManager(RepositoryManager $manager)
{ {
$this->repositoryManager = $manager; $this->repositoryManager = $manager;
} }
/**
* @return Repository\RepositoryManager
*/
public function getRepositoryManager() public function getRepositoryManager()
{ {
return $this->repositoryManager; return $this->repositoryManager;
} }
/**
* @param Downloader\DownloadManager $manager
*/
public function setDownloadManager(DownloadManager $manager) public function setDownloadManager(DownloadManager $manager)
{ {
$this->downloadManager = $manager; $this->downloadManager = $manager;
} }
/**
* @return Doenloader\DownloadManager
*/
public function getDownloadManager() public function getDownloadManager()
{ {
return $this->downloadManager; return $this->downloadManager;
} }
/**
* @param Installer\InstallationManager $manager
*/
public function setInstallationManager(InstallationManager $manager) public function setInstallationManager(InstallationManager $manager)
{ {
$this->installationManager = $manager; $this->installationManager = $manager;
} }
/**
* @return Installer\InstallationManager
*/
public function getInstallationManager() public function getInstallationManager()
{ {
return $this->installationManager; return $this->installationManager;