FormatConstraint::getEventClass()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 4

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 0
CRAP Score 2

Importance

Changes 0
Metric Value
dl 0
loc 4
ccs 0
cts 4
cp 0
rs 10
c 0
b 0
f 0
cc 1
nc 1
nop 0
crap 2
1
<?php
2
/**
3
 * custom format constraint
4
 */
5
6
namespace Graviton\JsonSchemaBundle\Validator\Constraint;
7
8
use JsonSchema\Constraints\FormatConstraint as BaseFormatConstraint;
9
10
/**
11
 * @author   List of contributors <https://github.com/libgraviton/graviton/graphs/contributors>
12
 * @license  https://opensource.org/licenses/MIT MIT License
13
 * @link     http://swisscom.ch
14
 */
15
class FormatConstraint extends BaseFormatConstraint
16
{
17
18
    use ConstraintTrait;
19
20
    /**
21
     * class of the event
22
     *
23
     * @var string
24
     */
25
    private $eventClass = 'Graviton\JsonSchemaBundle\Validator\Constraint\Event\ConstraintEventFormat';
26
27
    /**
28
     * Returns the name of the Event class for this event
29
     *
30
     * @return string event class name
31
     */
32
    public function getEventClass()
33
    {
34
        return $this->eventClass;
35
    }
36
}
37