Conditions | 1 |
Paths | 1 |
Total Lines | 20 |
Code Lines | 10 |
Lines | 0 |
Ratio | 0 % |
Tests | 0 |
CRAP Score | 2 |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
18 | public function configureOptions(OptionsResolver $resolver) |
||
19 | { |
||
20 | $resolver |
||
21 | // filter option is required |
||
22 | ->setRequired('filters') |
||
23 | ->setAllowedTypes('filters', 'array') |
||
24 | |||
25 | // sources is required and should be an array |
||
26 | ->setRequired('sources') |
||
27 | ->setAllowedTypes('sources', 'array') |
||
28 | |||
29 | // destination should be a string, no array is allowed for now |
||
30 | ->setRequired('destinations') |
||
31 | ->setAllowedTypes('destinations', 'array') |
||
32 | |||
33 | // debug mode (allow more verbosity) |
||
34 | ->setDefault('debug', false) |
||
35 | ->setAllowedTypes('debug', 'boolean') |
||
36 | ; |
||
37 | } |
||
38 | } |
||
39 |