Total Complexity | 2 |
Total Lines | 26 |
Duplicated Lines | 0 % |
Coverage | 100% |
Changes | 0 |
1 | <?php |
||
6 | class ProviderValuePromise |
||
7 | { |
||
8 | /** |
||
9 | * @var EntityProviderInterface |
||
10 | */ |
||
11 | private $provider; |
||
12 | /** |
||
13 | * @var string |
||
14 | */ |
||
15 | private $key; |
||
16 | |||
17 | 3 | public function __construct(EntityProviderInterface $provider, string $key) |
|
21 | 3 | } |
|
22 | |||
23 | /** |
||
24 | * Return whatever was provided by the provider |
||
25 | * |
||
26 | * @return mixed |
||
27 | */ |
||
28 | 3 | public function resolve() |
|
34 |