Total Complexity | 8 |
Total Lines | 50 |
Duplicated Lines | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
5 | class BaseSolution implements Solution |
||
6 | { |
||
7 | protected $title; |
||
8 | protected $description; |
||
9 | protected $links = []; |
||
10 | |||
11 | public static function create(string $title) |
||
12 | { |
||
13 | return new static($title); |
||
14 | } |
||
15 | |||
16 | public function __construct(string $title) |
||
17 | { |
||
18 | $this->title = $title; |
||
19 | } |
||
20 | |||
21 | public function getSolutionTitle(): string |
||
22 | { |
||
23 | return $this->title; |
||
24 | } |
||
25 | |||
26 | public function setSolutionTitle(string $title): self |
||
27 | { |
||
28 | $this->title = $title; |
||
29 | |||
30 | return $this; |
||
31 | } |
||
32 | |||
33 | public function getSolutionDescription(): string |
||
36 | } |
||
37 | |||
38 | public function setSolutionDescription(string $description): self |
||
43 | } |
||
44 | |||
45 | public function getDocumentationLinks(): array |
||
48 | } |
||
49 | |||
50 | public function setDocumentationLinks(array $links): self |
||
51 | { |
||
52 | $this->links = $links; |
||
57 |