Composer.php 1.9 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495
  1. <?php
  2. /*
  3. * This file is part of Composer.
  4. *
  5. * (c) Nils Adermann <naderman@naderman.de>
  6. * Jordi Boggiano <j.boggiano@seld.be>
  7. *
  8. * For the full copyright and license information, please view the LICENSE
  9. * file that was distributed with this source code.
  10. */
  11. namespace Composer;
  12. use Composer\Package\PackageInterface;
  13. use Composer\Package\Locker;
  14. use Composer\Repository\RepositoryManager;
  15. use Composer\Installer\InstallationManager;
  16. use Composer\Downloader\DownloadManager;
  17. /**
  18. * @author Jordi Boggiano <j.boggiano@seld.be>
  19. * @author Konstantin Kudryashiv <ever.zet@gmail.com>
  20. */
  21. class Composer
  22. {
  23. const VERSION = '1.0.0-alpha3';
  24. private $package;
  25. private $locker;
  26. private $repositoryManager;
  27. private $downloadManager;
  28. private $installationManager;
  29. public function setPackage(PackageInterface $package)
  30. {
  31. $this->package = $package;
  32. }
  33. public function getPackage()
  34. {
  35. return $this->package;
  36. }
  37. public function setConfig(Config $config)
  38. {
  39. $this->config = $config;
  40. }
  41. public function getConfig()
  42. {
  43. return $this->config;
  44. }
  45. public function setLocker(Locker $locker)
  46. {
  47. $this->locker = $locker;
  48. }
  49. public function getLocker()
  50. {
  51. return $this->locker;
  52. }
  53. public function setRepositoryManager(RepositoryManager $manager)
  54. {
  55. $this->repositoryManager = $manager;
  56. }
  57. public function getRepositoryManager()
  58. {
  59. return $this->repositoryManager;
  60. }
  61. public function setDownloadManager(DownloadManager $manager)
  62. {
  63. $this->downloadManager = $manager;
  64. }
  65. public function getDownloadManager()
  66. {
  67. return $this->downloadManager;
  68. }
  69. public function setInstallationManager(InstallationManager $manager)
  70. {
  71. $this->installationManager = $manager;
  72. }
  73. public function getInstallationManager()
  74. {
  75. return $this->installationManager;
  76. }
  77. }