Completed
Pull Request — master (#90)
by Arnaud
16:42
created

ActionConfiguration::configureOptions()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 11
Code Lines 6

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 0
CRAP Score 2

Importance

Changes 0
Metric Value
dl 0
loc 11
ccs 0
cts 10
cp 0
rs 9.4285
c 0
b 0
f 0
cc 1
eloc 6
nc 1
nop 1
crap 2
1
<?php
2
3
namespace LAG\AdminBundle\Field\Configuration;
4
5
use JK\Configuration\Configuration;
6
use Symfony\Component\OptionsResolver\OptionsResolver;
7
8
class ActionConfiguration extends Configuration
9
{
10
    public function configureOptions(OptionsResolver $resolver)
11
    {
12
        parent::configureOptions($resolver);
13
    
14
        $resolver
15
            ->setDefaults([
16
                'class' => 'btn btn-danger btn-sm',
17
                'text' => '',
18
            ])
19
        ;
20
    }
21
}
22