Verify::__toString()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 4

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 2
CRAP Score 1

Importance

Changes 0
Metric Value
cc 1
nc 1
nop 0
dl 0
loc 4
ccs 2
cts 2
cp 1
crap 1
rs 10
c 0
b 0
f 0
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 a Pre-condition check, applied to the method
20
 *
21
 * @Annotation
22
 * @Target("METHOD")
23
 */
24
class Verify extends BaseAnnotation
25
{
26 8
    public function __toString()
27
    {
28 8
        return $this->value;
29
    }
30
}
31