Total Complexity | 8 |
Total Lines | 80 |
Duplicated Lines | 0 % |
Changes | 0 |
1 | <?php |
||
8 | class Subsite extends ServiceEntity implements TimelineOwnerInterface |
||
9 | { |
||
10 | /** |
||
11 | * Get subsite ID. |
||
12 | * |
||
13 | * @return int|null |
||
14 | */ |
||
15 | public function getId() |
||
16 | { |
||
17 | return $this->getData('id'); |
||
|
|||
18 | } |
||
19 | |||
20 | /** |
||
21 | * Get subsite URL. |
||
22 | * |
||
23 | * @return string|null |
||
24 | */ |
||
25 | public function getUrl() |
||
26 | { |
||
27 | return $this->getData('url'); |
||
28 | } |
||
29 | |||
30 | /** |
||
31 | * Get subsite type. |
||
32 | * |
||
33 | * @return int|null |
||
34 | */ |
||
35 | public function getType() |
||
36 | { |
||
37 | return $this->getData('type'); |
||
38 | } |
||
39 | |||
40 | /** |
||
41 | * Get subsite name. |
||
42 | * |
||
43 | * @return string|null |
||
44 | */ |
||
45 | public function getName() |
||
46 | { |
||
47 | return $this->getData('name'); |
||
48 | } |
||
49 | |||
50 | /** |
||
51 | * Get subsite description. |
||
52 | * |
||
53 | * @return string|null |
||
54 | */ |
||
55 | public function getDescription() |
||
56 | { |
||
57 | return $this->getData('description'); |
||
58 | } |
||
59 | |||
60 | /** |
||
61 | * Get subsite avatar URL. |
||
62 | * |
||
63 | * @return string|null |
||
64 | */ |
||
65 | public function getAvatarUrl() |
||
66 | { |
||
67 | return $this->getData('avatar_url'); |
||
68 | } |
||
69 | |||
70 | /** |
||
71 | * Get subsite head cover. |
||
72 | * |
||
73 | * @return mixed |
||
74 | */ |
||
75 | public function getHeadCover() |
||
78 | } |
||
79 | |||
80 | /** |
||
81 | * Get the timeline URL prefix. |
||
82 | * |
||
83 | * @return string |
||
84 | */ |
||
85 | public function getTimelineUrlPrefix() |
||
88 | } |
||
89 | } |
||
90 |