ReleaseInfo.php 1.0 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950
  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\Repository\Pear;
  12. /**
  13. * PEAR package release info
  14. *
  15. * @author Alexey Prilipko <palex@farpost.com>
  16. */
  17. class ReleaseInfo
  18. {
  19. private $stability;
  20. private $dependencyInfo;
  21. /**
  22. * @param string $stability
  23. * @param DependencyInfo $dependencyInfo
  24. */
  25. public function __construct($stability, $dependencyInfo)
  26. {
  27. $this->stability = $stability;
  28. $this->dependencyInfo = $dependencyInfo;
  29. }
  30. /**
  31. * @return DependencyInfo release dependencies
  32. */
  33. public function getDependencyInfo()
  34. {
  35. return $this->dependencyInfo;
  36. }
  37. /**
  38. * @return string release stability
  39. */
  40. public function getStability()
  41. {
  42. return $this->stability;
  43. }
  44. }