| 1 | <?php |
||
| 9 | class ApiVersionFeaturesProvider |
||
| 10 | { |
||
| 11 | /** |
||
| 12 | * @var ApiVersionProvider |
||
| 13 | */ |
||
| 14 | protected $apiVersionProvider; |
||
| 15 | |||
| 16 | /** |
||
| 17 | * @var Definition[] |
||
| 18 | */ |
||
| 19 | protected $features; |
||
| 20 | |||
| 21 | /** |
||
| 22 | * @param ApiVersionProvider $apiVersionProvider |
||
| 23 | */ |
||
| 24 | 1 | public function __construct(ApiVersionProvider $apiVersionProvider) |
|
| 30 | |||
| 31 | /** |
||
| 32 | * @param iterable $features |
||
| 33 | * |
||
| 34 | * @throws \InvalidArgumentException |
||
| 35 | */ |
||
| 36 | 1 | public function addFeatures(iterable $features): void |
|
| 46 | |||
| 47 | /** |
||
| 48 | * @return Definition[] |
||
| 49 | * |
||
| 50 | * @throws \RuntimeException |
||
| 51 | */ |
||
| 52 | 1 | public function getAvailableFeatures(): array |
|
| 70 | } |
||
| 71 |