Total Complexity | 4 |
Total Lines | 36 |
Duplicated Lines | 0 % |
Coverage | 100% |
Changes | 0 |
1 | <?php |
||
10 | final class InvalidTarget extends LogicException implements ValidationException |
||
11 | { |
||
12 | public static function class(AnnotationMetadata $metadata) : self |
||
13 | { |
||
14 | return new self( |
||
15 | sprintf( |
||
16 | 'Class target is not allowed for annotation %s', |
||
17 | $metadata->getName() |
||
18 | ) |
||
19 | ); |
||
20 | } |
||
21 | 1 | public static function property(AnnotationMetadata $metadata) : self |
|
27 | ) |
||
28 | ); |
||
29 | } |
||
30 | 1 | public static function method(AnnotationMetadata $metadata) : self |
|
36 | ) |
||
37 | ); |
||
38 | } |
||
39 | |||
40 | 3 | public static function annotation(AnnotationMetadata $metadata) : self |
|
50 |