ObjectConstraint   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 22
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 2

Test Coverage

Coverage 0%

Importance

Changes 0
Metric Value
wmc 1
lcom 0
cbo 2
dl 0
loc 22
ccs 0
cts 4
cp 0
rs 10
c 0
b 0
f 0

1 Method

Rating   Name   Duplication   Size   Complexity  
A getEventClass() 0 4 1
1
<?php
2
/**
3
 * custom object constraint
4
 */
5
6
namespace Graviton\JsonSchemaBundle\Validator\Constraint;
7
8
use JsonSchema\Constraints\ObjectConstraint as BaseObjectConstraint;
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 ObjectConstraint extends BaseObjectConstraint
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\ConstraintEventObject';
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