Breadcrumb.php 406 B

1234567891011121314151617181920212223242526272829303132
  1. <?php
  2. namespace App;
  3. class Breadcrumb {
  4. /** @var string */
  5. private $name;
  6. /** @var string */
  7. private $url;
  8. public function __construct(string $url, string $name) {
  9. $this->url = $url;
  10. $this->name = $name;
  11. }
  12. /**
  13. * @return string
  14. */
  15. public function getName(): string {
  16. return $this->name;
  17. }
  18. /**
  19. * @return string
  20. */
  21. public function getUrl(): string {
  22. return $this->url;
  23. }
  24. }