Total Complexity | 3 |
Total Lines | 38 |
Duplicated Lines | 0 % |
Coverage | 100% |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
24 | class ClusterPage |
||
25 | { |
||
26 | /** @var string title cluster page */ |
||
27 | private $title; |
||
28 | |||
29 | /** @var string cluster page url */ |
||
30 | private $url; |
||
31 | |||
32 | /** |
||
33 | * Creates an object with information about the cluster page. |
||
34 | * |
||
35 | * @param string $title cluster page title |
||
36 | * @param string $url cluster page url |
||
37 | */ |
||
38 | 16 | public function __construct(string $title, string $url) |
|
39 | { |
||
40 | 16 | $this->title = $title; |
|
41 | 16 | $this->url = $url; |
|
42 | } |
||
43 | |||
44 | /** |
||
45 | * Returns the cluster page title. |
||
46 | * |
||
47 | * @return string cluster page title |
||
48 | */ |
||
49 | 3 | public function getTitle(): string |
|
50 | { |
||
51 | 3 | return $this->title; |
|
52 | } |
||
53 | |||
54 | /** |
||
55 | * Returns the cluster page url. |
||
56 | * |
||
57 | * @return string cluster page url |
||
58 | */ |
||
59 | 17 | public function getUrl(): string |
|
62 | } |
||
63 | } |
||
64 |