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 | /** |
||
22 | * @return string |
||
23 | */ |
||
24 | 13 | public function getTitle(): string |
|
28 | |||
29 | /** |
||
30 | * @param string $title |
||
31 | * @return Result |
||
32 | */ |
||
33 | 13 | public function setTitle(string $title): Result |
|
38 | |||
39 | /** |
||
40 | * @return string |
||
41 | */ |
||
42 | 14 | public function getUrl(): string |
|
46 | |||
47 | /** |
||
48 | * @param string $url |
||
49 | * @return Result |
||
50 | * @throws InvalidUrlException |
||
51 | */ |
||
52 | 15 | public function setUrl(string $url): Result |
|
61 | |||
62 | /** |
||
63 | * @return string |
||
64 | */ |
||
65 | 13 | public function getDescription(): ?string |
|
69 | |||
70 | /** |
||
71 | * @param string $description |
||
72 | * @return Result |
||
73 | */ |
||
74 | 13 | public function setDescription(string $description): Result |
|
79 | |||
80 | |||
81 | } |
||
82 |