BundledComponent.php 840 B

12345678910111213141516171819202122232425262728293031323334
  1. <?php declare(strict_types = 1);
  2. /*
  3. * This file is part of PharIo\Manifest.
  4. *
  5. * Copyright (c) Arne Blankerts <arne@blankerts.de>, Sebastian Heuer <sebastian@phpeople.de>, Sebastian Bergmann <sebastian@phpunit.de> and contributors
  6. *
  7. * For the full copyright and license information, please view the LICENSE
  8. * file that was distributed with this source code.
  9. *
  10. */
  11. namespace PharIo\Manifest;
  12. use PharIo\Version\Version;
  13. class BundledComponent {
  14. /** @var string */
  15. private $name;
  16. /** @var Version */
  17. private $version;
  18. public function __construct(string $name, Version $version) {
  19. $this->name = $name;
  20. $this->version = $version;
  21. }
  22. public function getName(): string {
  23. return $this->name;
  24. }
  25. public function getVersion(): Version {
  26. return $this->version;
  27. }
  28. }