ContentItemMatrix   A
last analyzed

Complexity

Total Complexity 2

Size/Duplication

Total Lines 19
Duplicated Lines 0 %

Test Coverage

Coverage 0%

Importance

Changes 0
Metric Value
eloc 3
dl 0
loc 19
ccs 0
cts 7
cp 0
rs 10
c 0
b 0
f 0
wmc 2

2 Methods

Rating   Name   Duplication   Size   Complexity  
A getTargets() 0 3 1
A validatedBy() 0 3 1
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