Invariant   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 7
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 1

Test Coverage

Coverage 100%

Importance

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

1 Method

Rating   Name   Duplication   Size   Complexity  
A __toString() 0 4 1
1
<?php
2
3
/**
4
 * PHP Deal framework
5
 *
6
 * @copyright Copyright 2019, Lisachenko Alexander <[email protected]>
7
 *
8
 * This source file is subject to the license that is bundled
9
 * with this source code in the file LICENSE.
10
 */
11
12
declare(strict_types=1);
13
14
namespace PhpDeal\Annotation;
15
16
use Doctrine\Common\Annotations\Annotation as BaseAnnotation;
17
18
/**
19
 * This annotation defines an Invariant check
20
 *
21
 * @Annotation
22
 * @Target("CLASS")
23
 */
24
class Invariant extends BaseAnnotation
25
{
26 6
    public function __toString(): string
27
    {
28 6
        return $this->value;
29
    }
30
}
31