Conditions | 1 |
Paths | 1 |
Total Lines | 13 |
Code Lines | 9 |
Lines | 0 |
Ratio | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
19 | protected static function configureOptionResolver(OptionsResolver $resolver): void |
||
20 | { |
||
21 | $resolver->setDefaults([ |
||
22 | 'http_client' => null, |
||
23 | 'app_id' => null, |
||
24 | 'app_code' => null, |
||
25 | 'use_cit' => false, |
||
26 | ]); |
||
27 | |||
28 | $resolver->setAllowedTypes('http_client', ['object', 'null']); |
||
29 | $resolver->setAllowedTypes('app_id', ['string', 'null']); |
||
30 | $resolver->setAllowedTypes('app_code', ['string', 'null']); |
||
31 | $resolver->setRequired(['app_id', 'app_code']); |
||
32 | } |
||
34 |