| Total Complexity | 2 |
| Total Lines | 28 |
| Duplicated Lines | 0 % |
| Coverage | 100% |
| Changes | 0 | ||
| 1 | <?php |
||
| 7 | class ServiceFactory |
||
| 8 | { |
||
| 9 | /** @var ProviderInterface */ |
||
| 10 | private $provider; |
||
| 11 | |||
| 12 | /** @var HttpInterface */ |
||
| 13 | private $http; |
||
| 14 | |||
| 15 | /** |
||
| 16 | * Constructor method for the client |
||
| 17 | * |
||
| 18 | * @param ProviderInterface $provider |
||
| 19 | * @param HttpInterface $http |
||
| 20 | */ |
||
| 21 | 2 | public function __construct(ProviderInterface $provider, HttpInterface $http) |
|
| 25 | 2 | } |
|
| 26 | |||
| 27 | /** |
||
| 28 | * Return an instance of GeoService for the Provider |
||
| 29 | * |
||
| 30 | * @return GeoService |
||
| 31 | */ |
||
| 32 | 1 | public function getGeoService() : GeoService |
|
| 35 | } |
||
| 36 | } |