Passed
Push — develop ( 98d07f...258763 )
by Ludwig
01:42
created

StringType::configureOptions()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 13
Code Lines 8

Duplication

Lines 13
Ratio 100 %

Importance

Changes 0
Metric Value
dl 13
loc 13
rs 9.4285
c 0
b 0
f 0
cc 1
eloc 8
nc 1
nop 1
1
<?php
2
/*
3
 * This file is part of cwdFancyGridBundle
4
 *
5
 * (c)2017 cwd.at GmbH <[email protected]>
6
 *
7
 * For the full copyright and license information, please view the LICENSE
8
 * file that was distributed with this source code.
9
 */
10
declare(strict_types=1);
11
namespace Cwd\FancyGridBundle\Column;
12
use Symfony\Component\OptionsResolver\OptionsResolver;
13
14
/**
15
 * Class TextType
16
 * @package Cwd\FancyGridBundle\Column
17
 * @author Ludwig Ruderstaler <[email protected]>
18
 */
19 View Code Duplication
class StringType extends AbstractColumn
20
{
21
    /**
22
     * {@inheritdoc}
23
     */
24
    public function configureOptions(OptionsResolver $resolver)
25
    {
26
        parent::configureOptions($resolver);
27
28
        $resolver->setDefaults(array(
29
            'align' => 'left',
30
            'cellAlign' => 'left',
31
            'format' => 'number',
32
            'type' => 'string',
33
        ));
34
35
        $resolver->setAllowedTypes('attr', 'array');
36
    }
37
}
38