File tree Expand file tree Collapse file tree 1 file changed +29
-4
lines changed Expand file tree Collapse file tree 1 file changed +29
-4
lines changed Original file line number Diff line number Diff line change @@ -16,19 +16,44 @@ public function __construct()
16
16
$ this ->helper = plugin_load ('helper ' , 'farmer ' );
17
17
}
18
18
19
- public function getHostname () {
19
+ /**
20
+ * Get the configured farm host
21
+ *
22
+ * @return string
23
+ */
24
+ public function getFarmhost (): string
25
+ {
20
26
return $ this ->helper ->getConfig ()['base ' ]['farmhost ' ];
21
27
}
22
28
23
- public function getBaseDomain () {
29
+ /**
30
+ * Get the configured base domain of the farmer
31
+ * This could be an empty string, then farmhost will be used to determine an animal url
32
+ *
33
+ * @return string
34
+ */
35
+ public function getBaseDomain (): string
36
+ {
24
37
return $ this ->helper ->getConfig ()['base ' ]['basedomain ' ];
25
38
}
26
39
27
- public function listAnimals () {
40
+ /**
41
+ * Get a list of all animal names
42
+ *
43
+ * @return array
44
+ */
45
+ public function listAnimals (): array
46
+ {
28
47
return $ this ->helper ->getAllAnimals ();
29
48
}
30
49
31
- public function listAnimalUrls () {
50
+ /**
51
+ * Get a list of all animal urls
52
+ *
53
+ * @return array
54
+ */
55
+ public function listAnimalUrls (): array
56
+ {
32
57
foreach ($ this ->helper ->getAllAnimals () as $ animal ) {
33
58
$ animalUrls [] = $ this ->helper ->getAnimalURL ($ animal );
34
59
}
You can’t perform that action at this time.
0 commit comments