Total Complexity | 5 |
Total Lines | 22 |
Duplicated Lines | 0 % |
Coverage | 100% |
Changes | 1 | ||
Bugs | 0 | Features | 1 |
1 | <?php |
||
13 | 1 | final class Friendica implements \Nexendrie\Components\ISocialIcon { |
|
14 | private string $account; |
||
15 | |||
16 | public function __construct(SettingsRepository $sr) { |
||
17 | 1 | $this->account = $sr->settings["socialAccounts"]["friendica"]; |
|
18 | 1 | } |
|
19 | |||
20 | public function getLink(): string { |
||
21 | 1 | $parts = explode("@", $this->account); |
|
22 | 1 | return "https://{$parts[2]}/profile/{$parts[1]}"; |
|
23 | } |
||
24 | |||
25 | public function getImage(): string { |
||
26 | 1 | return "friendica.png"; |
|
27 | } |
||
28 | |||
29 | public function getImageAlt(): string { |
||
31 | } |
||
32 | |||
33 | public function getImageTitle(): string { |
||
35 | } |
||
36 | } |
||
37 | ?> |