AnnotationClassWithAnonymousClass   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 5
Duplicated Lines 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
eloc 2
c 1
b 0
f 0
dl 0
loc 5
rs 10
wmc 1

2 Methods

Rating   Name   Duplication   Size   Complexity  
foo() 0 3 ?
A hp$0 ➔ foo() 0 3 1
1
<?php
2
3
namespace Doctrine\Tests\Common\Reflection;
4
5
use Doctrine\Common\Annotations\Annotation;
6
7
/**
8
 * @Annotation(
9
 *   key = "value"
10
 * )
11
 */
12
class AnnotationClassWithAnonymousClass
13
{
14
    public function foo()
15
    {
16
        $new_class = new class () {
0 ignored issues
show
Unused Code introduced by
The assignment to $new_class is dead and can be removed.
Loading history...
17
        };
18
    }
19
}
20