Completed
Pull Request — master (#90)
by Arnaud
02:11
created

FilterConfiguration::configureOptions()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 10
Code Lines 6

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
dl 0
loc 10
rs 9.4285
c 0
b 0
f 0
cc 1
eloc 6
nc 1
nop 1
1
<?php
2
3
namespace LAG\AdminBundle\Filter\Configuration;
4
5
use JK\Configuration\Configuration;
6
use Symfony\Component\OptionsResolver\Options;
7
use Symfony\Component\OptionsResolver\OptionsResolver;
8
9
class FilterConfiguration extends Configuration
10
{
11
    /**
12
     * Define allowed parameters and values for this configuration, using optionsResolver component.
13
     *
14
     * @param OptionsResolver $resolver
15
     */
16
    public function configureOptions(OptionsResolver $resolver)
17
    {
18
        $resolver
19
            ->setDefaults([
20
                'options' => [],
21
                'type' => 'string',
22
            ])
23
            ->setAllowedTypes('type', 'string')
24
        ;
25
    }
26
}
27