SetType   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 15
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 1

Test Coverage

Coverage 100%

Importance

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

1 Method

Rating   Name   Duplication   Size   Complexity  
A getRequiredOptions() 0 4 1
1
<?php
2
3
namespace Okapon\DoctrineSetTypeBundle\Validator\Constraints;
4
5
use Symfony\Component\Validator\Constraints\Choice;
6
7
/**
8
 * SET type constraint
9
 *
10
 * @author Yuichi Okada <[email protected]>
11
 *
12
 * @Annotation
13
 */
14
class SetType extends Choice
15
{
16
    /**
17
     * @var string $class validation target class name
18
     */
19
    public $class;
20
21
    /**
22
     * {@inheritdoc}
23
     */
24 8
    public function getRequiredOptions()
25
    {
26 8
        return ['class'];
27
    }
28
}
29