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

BooleanConfiguration::configureOptions()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 8
Code Lines 4

Duplication

Lines 0
Ratio 0 %

Importance

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