| Total Complexity | 2 |
| Total Lines | 31 |
| Duplicated Lines | 0 % |
| Coverage | 100% |
| Changes | 0 | ||
| 1 | <?php |
||
| 7 | abstract class AbstractService |
||
| 8 | { |
||
| 9 | /** @var ProviderInterface */ |
||
| 10 | protected $provider; |
||
| 11 | |||
| 12 | /** @var HttpInterface */ |
||
| 13 | protected $http; |
||
| 14 | |||
| 15 | /** |
||
| 16 | * constructor for the service |
||
| 17 | * |
||
| 18 | * @param ProviderInterface $provider |
||
| 19 | * @param HttpInterface $http |
||
| 20 | */ |
||
| 21 | 3 | public function __construct( |
|
| 27 | 3 | } |
|
| 28 | |||
| 29 | /** |
||
| 30 | * set the provider for the service |
||
| 31 | * |
||
| 32 | * @param ProviderInterface $provider |
||
| 33 | * @return void |
||
| 34 | */ |
||
| 35 | 2 | public function setProvider(ProviderInterface $provider) : void |
|
| 38 | } |
||
| 39 | } |