1 | <?php |
||
17 | final class LocoProject |
||
18 | { |
||
19 | /** |
||
20 | * @var string |
||
21 | */ |
||
22 | private $name; |
||
23 | |||
24 | /** |
||
25 | * @var string |
||
26 | */ |
||
27 | private $apiKey; |
||
28 | |||
29 | 3 | /** |
|
30 | * @var string |
||
31 | 3 | */ |
|
32 | 3 | private $indexParameter; |
|
33 | 3 | ||
34 | 3 | /** |
|
35 | * @var array |
||
36 | */ |
||
37 | private $domains; |
||
38 | |||
39 | 1 | /** |
|
40 | * @param string $name |
||
41 | 1 | * @param array $config |
|
42 | */ |
||
43 | public function __construct(string $name, array $config) |
||
50 | |||
51 | /** |
||
52 | * @return string |
||
53 | */ |
||
54 | public function getName() |
||
58 | |||
59 | /** |
||
60 | * @return string|null |
||
61 | */ |
||
62 | public function getApiKey() |
||
66 | |||
67 | /** |
||
68 | * @return string|null |
||
69 | */ |
||
70 | public function getIndexParameter() |
||
74 | |||
75 | /** |
||
76 | * @return array |
||
77 | */ |
||
78 | public function getDomains() |
||
82 | |||
83 | /** |
||
84 | * @param string $domain |
||
85 | * |
||
86 | * @return bool |
||
87 | */ |
||
88 | public function hasDomain(string $domain) |
||
92 | |||
93 | /** |
||
94 | * @return bool Returning true means that domains are expected to be managed with tags. |
||
95 | */ |
||
96 | public function isMultiDomain() |
||
100 | } |
||
101 |