DependencyConstraint.php 1.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960
  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 dependency info
  14. *
  15. * @author Alexey Prilipko <palex@farpost.com>
  16. */
  17. class DependencyConstraint
  18. {
  19. private $type;
  20. private $constraint;
  21. private $channelName;
  22. private $packageName;
  23. /**
  24. * @param string $type
  25. * @param string $constraint
  26. * @param string $channelName
  27. * @param string $packageName
  28. */
  29. public function __construct($type, $constraint, $channelName, $packageName)
  30. {
  31. $this->type = $type;
  32. $this->constraint = $constraint;
  33. $this->channelName = $channelName;
  34. $this->packageName = $packageName;
  35. }
  36. public function getChannelName()
  37. {
  38. return $this->channelName;
  39. }
  40. public function getConstraint()
  41. {
  42. return $this->constraint;
  43. }
  44. public function getPackageName()
  45. {
  46. return $this->packageName;
  47. }
  48. public function getType()
  49. {
  50. return $this->type;
  51. }
  52. }