1 | <?php |
||
12 | class Entry extends AbstractResource |
||
13 | { |
||
14 | /** @var string */ |
||
15 | public $name; |
||
16 | |||
17 | /** @var string */ |
||
18 | public $type; |
||
19 | |||
20 | /** @var []Endpoint */ |
||
21 | public $endpoints = []; |
||
22 | |||
23 | /** |
||
24 | * Indicates whether this catalog entry matches a certain name and type. |
||
25 | * |
||
26 | * @param string $name |
||
27 | * @param string $type |
||
28 | * |
||
29 | * @return bool TRUE if it's a match, FALSE if not |
||
30 | */ |
||
31 | 1 | public function matches($name, $type) |
|
35 | |||
36 | /** |
||
37 | * Retrieves the catalog entry's URL according to a specific region and URL type |
||
38 | * |
||
39 | * @param string $region |
||
40 | * @param string $urlType |
||
41 | * |
||
42 | * @return string|null |
||
43 | */ |
||
44 | 2 | public function getEndpointUrl($region, $urlType) |
|
54 | } |
||
55 |