GitHub Access Token became invalid

It seems like the GitHub access token used for retrieving details about this repository from GitHub became invalid. This might prevent certain types of inspections from being run (in particular, everything related to pull requests).
Please ask an admin of your repository to re-new the access token on this website.

GenderType   A
last analyzed

Complexity

Total Complexity 4

Size/Duplication

Total Lines 42
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 2

Importance

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

4 Methods

Rating   Name   Duplication   Size   Complexity  
A getParent() 0 4 1
A getName() 0 4 1
A getExtendedType() 0 4 1
A setDefaultOptions() 0 9 1
1
<?php
2
3
namespace Application\Form\Type;
4
5
use Symfony\Component\Form\AbstractType;
6
use Symfony\Component\OptionsResolver\OptionsResolverInterface;
7
8
/**
9
 * @author Borut Balažek <[email protected]>
10
 */
11
class GenderType extends AbstractType
12
{
13
    const MALE = 'male';
14
    const FEMALE = 'female';
15
16
    /**
17
     * @param OptionsResolverInterface $resolver
18
     */
19
    public function setDefaultOptions(OptionsResolverInterface $resolver)
20
    {
21
        $resolver->setDefaults(array(
22
            'choices' => array(
23
                self::MALE => 'Male',
24
                self::FEMALE => 'Female',
25
            ),
26
        ));
27
    }
28
29
    /**
30
     * @return string
31
     */
32
    public function getParent()
33
    {
34
        return 'choice';
35
    }
36
37
    /**
38
     * @return string
39
     */
40
    public function getName()
41
    {
42
        return 'gender';
43
    }
44
45
    /**
46
     * @return string
47
     */
48
    public function getExtendedType()
49
    {
50
        return 'gender';
51
    }
52
}
53