| 1 | <?php |
||
| 19 | class CloudManager implements CloudManagerInterface |
||
| 20 | { |
||
| 21 | /** |
||
| 22 | * Key to which the default Cloud is being mapped |
||
| 23 | * @var string |
||
| 24 | */ |
||
| 25 | private $defaultCloudKey; |
||
| 26 | |||
| 27 | /** |
||
| 28 | * The Clouds being managed by this CloudManager |
||
| 29 | * @var CloudInterface[] |
||
| 30 | */ |
||
| 31 | private $clouds = array(); |
||
| 32 | |||
| 33 | /** |
||
| 34 | * {@inheritDoc} |
||
| 35 | */ |
||
| 36 | 9 | public function registerCloud($key, CloudInterface $cloud) |
|
| 40 | |||
| 41 | /** |
||
| 42 | * {@inheritDoc} |
||
| 43 | */ |
||
| 44 | 7 | public function hasCloud($key) |
|
| 48 | |||
| 49 | /** |
||
| 50 | * {@inheritDoc} |
||
| 51 | */ |
||
| 52 | 7 | public function getCloud($key = null) |
|
| 64 | |||
| 65 | /** |
||
| 66 | * {@inheritDoc} |
||
| 67 | */ |
||
| 68 | 12 | public function setDefaultCloud($key) |
|
| 72 | |||
| 73 | /** |
||
| 74 | * {@inheritDoc} |
||
| 75 | */ |
||
| 76 | 4 | public function getDefaultCloud() |
|
| 80 | |||
| 81 | /** |
||
| 82 | * {@inheritDoc} |
||
| 83 | */ |
||
| 84 | 2 | public function getClouds() |
|
| 88 | } |
||
| 89 |