| 1 | <?php |
||
| 9 | class Hub |
||
| 10 | { |
||
| 11 | /** @var string */ |
||
| 12 | private $type; |
||
| 13 | |||
| 14 | /** @var string */ |
||
| 15 | private $url; |
||
| 16 | |||
| 17 | /** |
||
| 18 | * Constructor |
||
| 19 | * |
||
| 20 | * @param string $type |
||
| 21 | * @param string $url |
||
| 22 | */ |
||
| 23 | public function __construct($type, $url) |
||
| 28 | |||
| 29 | /** |
||
| 30 | * Get hub type |
||
| 31 | * |
||
| 32 | * @return string |
||
| 33 | */ |
||
| 34 | public function getType() |
||
| 38 | |||
| 39 | /** |
||
| 40 | * Get hub URL |
||
| 41 | * |
||
| 42 | * @return string |
||
| 43 | */ |
||
| 44 | public function getUrl() |
||
| 48 | } |
||
| 49 |