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

CountConfiguration   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 10
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 2

Importance

Changes 0
Metric Value
wmc 1
lcom 0
cbo 2
dl 0
loc 10
rs 10
c 0
b 0
f 0

1 Method

Rating   Name   Duplication   Size   Complexity  
A configureOptions() 0 7 1
1
<?php
2
3
namespace LAG\AdminBundle\Field\Configuration;
4
5
use JK\Configuration\Configuration;
6
use Symfony\Component\OptionsResolver\OptionsResolver;
7
8
/**
9
 * Count field.
10
 */
11
class CountConfiguration extends Configuration
12
{
13
    public function configureOptions(OptionsResolver $resolver)
14
    {
15
        $resolver->setDefaults([
16
            'empty_string' => null,
17
            'sortable' => false,
18
        ]);
19
    }
20
}
21