| 1 | <?php |
||
| 12 | class Result |
||
| 13 | { |
||
| 14 | /** @var string $title */ |
||
| 15 | private $title; |
||
| 16 | /** @var string $url */ |
||
| 17 | private $url; |
||
| 18 | /** @var string $description */ |
||
| 19 | private $description; |
||
| 20 | |||
| 21 | 10 | public function getTitle(): string |
|
| 22 | { |
||
| 23 | 10 | return $this->title; |
|
| 24 | } |
||
| 25 | |||
| 26 | 10 | public function setTitle(string $title): Result |
|
| 27 | { |
||
| 28 | 10 | $this->title = $title; |
|
| 29 | 10 | return $this; |
|
| 30 | } |
||
| 31 | |||
| 32 | 11 | public function getUrl(): string |
|
| 36 | |||
| 37 | /** |
||
| 38 | * @throws InvalidUrlException |
||
| 39 | */ |
||
| 40 | 12 | public function setUrl(string $url): Result |
|
| 49 | |||
| 50 | 11 | public function getDescription(): ?string |
|
| 54 | |||
| 55 | 11 | public function setDescription(string $description): Result |
|
| 61 | } |
||
| 62 |