| 1 | <?php declare(strict_types=1); |
||
| 13 | class Entry extends OperatorResource |
||
| 14 | { |
||
| 15 | /** @var string */ |
||
| 16 | public $name; |
||
| 17 | |||
| 18 | /** @var string */ |
||
| 19 | public $type; |
||
| 20 | |||
| 21 | /** @var []Endpoint */ |
||
| 22 | public $endpoints = []; |
||
| 23 | |||
| 24 | /** |
||
| 25 | * @inheritdoc |
||
| 26 | */ |
||
| 27 | protected function getAliases(): array |
||
| 33 | 1 | ||
| 34 | /** |
||
| 35 | * Indicates whether this catalog entry matches a certain name and type. |
||
| 36 | * |
||
| 37 | * @param string $name |
||
| 38 | * @param string $type |
||
| 39 | * |
||
| 40 | * @return bool TRUE if it's a match, FALSE if not |
||
| 41 | */ |
||
| 42 | public function matches(string $name, string $type): bool |
||
| 46 | 2 | ||
| 47 | 1 | /** |
|
| 48 | 1 | * Retrieves the catalog entry's URL according to a specific region and URL type |
|
| 49 | * |
||
| 50 | 1 | * @param string $region |
|
| 51 | * @param string $urlType |
||
| 52 | 1 | * |
|
| 53 | * @return string |
||
| 54 | */ |
||
| 55 | public function getEndpointUrl(string $region, string $urlType): string |
||
| 65 | } |
||
| 66 |