License.php 734 B

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