PreReleaseSuffix.php 606 B

1234567891011121314151617181920212223242526272829303132333435363738394041
  1. <?php
  2. namespace PharIo\Version;
  3. class PreReleaseSuffix
  4. {
  5. /**
  6. * @var string
  7. */
  8. private $value;
  9. /**
  10. * @var int
  11. */
  12. private $number;
  13. /**
  14. * @param string $value
  15. * @param int|null $number
  16. */
  17. public function __construct($value, $number = null)
  18. {
  19. $this->value = $value;
  20. $this->number = $number;
  21. }
  22. /**
  23. * @return string
  24. */
  25. public function getValue()
  26. {
  27. return $this->value;
  28. }
  29. /**
  30. * @return int|null
  31. */
  32. public function getNumber()
  33. {
  34. return $this->number;
  35. }
  36. }