| 1 | <?php |
||
| 24 | abstract class AbstractConfigLocator implements ILocator |
||
| 25 | { |
||
| 26 | /** |
||
| 27 | * Indicates if the locator knows about a specific type of payload. |
||
| 28 | * |
||
| 29 | * @param string |
||
| 30 | * @return bool |
||
| 31 | */ |
||
| 32 | public function hasPayloadConfig($type) |
||
| 36 | |||
| 37 | /** |
||
| 38 | * Get the payload configuration for a specific type of payload. |
||
| 39 | * |
||
| 40 | * @param string |
||
| 41 | * @return array |
||
| 42 | * @throws UnsupportedPayload |
||
| 43 | */ |
||
| 44 | public function getPayloadConfig($type) |
||
| 51 | |||
| 52 | /** |
||
| 53 | * Template method for getting the blob of config data. |
||
| 54 | * |
||
| 55 | * @return array |
||
| 56 | */ |
||
| 57 | abstract protected function getConfig(); |
||
| 58 | } |
||
| 59 |