Completed
Push — master ( 4fe349...ebd167 )
by Narcotic
05:21 queued 02:56
created

Format::getEventClass()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 0
CRAP Score 2

Importance

Changes 1
Bugs 0 Features 1
Metric Value
c 1
b 0
f 1
dl 0
loc 4
ccs 0
cts 4
cp 0
rs 10
cc 1
eloc 2
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;
9
10
/**
11
 * @author   List of contributors <https://github.com/libgraviton/graviton/graphs/contributors>
12
 * @license  http://opensource.org/licenses/gpl-license.php GNU Public License
13
 * @link     http://swisscom.ch
14
 */
15
class Format extends FormatConstraint
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