SetType::getRequiredOptions()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 2
CRAP Score 1

Importance

Changes 0
Metric Value
dl 0
loc 4
ccs 2
cts 2
cp 1
rs 10
c 0
b 0
f 0
cc 1
eloc 2
nc 1
nop 0
crap 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