Passed
Pull Request — master (#204)
by
unknown
23:41
created

buttonExtension::configureOptions()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 3
CRAP Score 1

Importance

Changes 0
Metric Value
cc 1
eloc 2
nc 1
nop 1
dl 0
loc 4
ccs 3
cts 3
cp 1
crap 1
rs 10
c 0
b 0
f 0
1
<?php
2
/**
3
 * @copyright CONTENT CONTROL GmbH, http://www.contentcontrol-berlin.de
4
 */
5
6
namespace midcom\datamanager\extension;
7
8
use Symfony\Component\Form\AbstractTypeExtension;
9
use Symfony\Component\OptionsResolver\OptionsResolver;
10
use Symfony\Component\Form\Extension\Core\Type\ButtonType;
11
12
/**
13
 * Experimental extension class
14
 */
15
class buttonExtension extends AbstractTypeExtension
16
{
17
    /**
18
     * {@inheritdoc}
19
     */
20 1
    public function configureOptions(OptionsResolver $resolver)
21
    {
22 1
        $resolver->setDefaults([
23 1
            'operation' => '',
24
        ]);
25 1
    }
26
27 1
    public static function getExtendedTypes() : iterable
28
    {
29 1
        return [ButtonType::class];
30
    }
31
}
32