BaseSolution.php 1.0 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556
  1. <?php
  2. namespace Facade\IgnitionContracts;
  3. class BaseSolution implements Solution
  4. {
  5. protected $title;
  6. protected $description;
  7. protected $links = [];
  8. public static function create(string $title)
  9. {
  10. return new static($title);
  11. }
  12. public function __construct(string $title)
  13. {
  14. $this->title = $title;
  15. }
  16. public function getSolutionTitle(): string
  17. {
  18. return $this->title;
  19. }
  20. public function setSolutionTitle(string $title): self
  21. {
  22. $this->title = $title;
  23. return $this;
  24. }
  25. public function getSolutionDescription(): string
  26. {
  27. return $this->description;
  28. }
  29. public function setSolutionDescription(string $description): self
  30. {
  31. $this->description = $description;
  32. return $this;
  33. }
  34. public function getDocumentationLinks(): array
  35. {
  36. return $this->links;
  37. }
  38. public function setDocumentationLinks(array $links): self
  39. {
  40. $this->links = $links;
  41. return $this;
  42. }
  43. }