1 | <?php |
||
11 | class Host implements HostInterface |
||
12 | { |
||
13 | /** |
||
14 | * @var string |
||
15 | */ |
||
16 | protected $id; |
||
17 | |||
18 | /** |
||
19 | * @var string |
||
20 | */ |
||
21 | protected $url; |
||
22 | |||
23 | /** |
||
24 | * @var array |
||
25 | */ |
||
26 | protected $settings; |
||
27 | |||
28 | /** |
||
29 | * @param string $id |
||
30 | * @param string $url |
||
31 | * @param array $settings |
||
32 | */ |
||
33 | public function __construct($id, $url, array $settings) |
||
39 | |||
40 | /** |
||
41 | * {@inheritdoc} |
||
42 | */ |
||
43 | public function getId() |
||
47 | |||
48 | /** |
||
49 | * {@inheritdoc} |
||
50 | */ |
||
51 | public function getUrl() |
||
55 | |||
56 | /** |
||
57 | * {@inheritdoc} |
||
58 | */ |
||
59 | public function getSettings() |
||
63 | |||
64 | /** |
||
65 | * @param string $name Setting name |
||
66 | * @param mixed $default Default value is setting is not set |
||
67 | * @return mixed |
||
68 | */ |
||
69 | public function getSetting($name, $default = null) |
||
77 | |||
78 | /** |
||
79 | * {@inheritdoc} |
||
80 | */ |
||
81 | public function getLoad() |
||
86 | |||
87 | /** |
||
88 | * {@inheritdoc} |
||
89 | */ |
||
90 | public function handleRequest(Request $request) |
||
98 | } |
||
99 |