ContentItemMatrix::validatedBy()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 3
Code Lines 1

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 0
CRAP Score 2

Importance

Changes 0
Metric Value
cc 1
eloc 1
c 0
b 0
f 0
nc 1
nop 0
dl 0
loc 3
ccs 0
cts 3
cp 0
crap 2
rs 10
1
<?php
2
/**
3
 * @author Gerard van Helden <[email protected]>
4
 * @copyright Zicht Online <http://zicht.nl>
5
 */
6
namespace Zicht\Bundle\PageBundle\Validator\Constraints;
7
8
use Symfony\Component\Validator\Constraint;
9
10
/**
11
 * Class ContentItemMatrix
12
 *
13
 * @package Zicht\Bundle\PageBundle\Validator\Constraints
14
 */
15
class ContentItemMatrix extends Constraint
16
{
17
18
    /**
19
     * @return string
20
     */
21
    public function getTargets()
22
    {
23
        return self::CLASS_CONSTRAINT;
24
    }
25
26
    /**
27
     * Returns service name
28
     *
29
     * @return string
30
     */
31
    public function validatedBy()
32
    {
33
        return 'zicht_page.validator.content_item_matrix_validator';
34
    }
35
}
36