AnnotationClassWithAnonymousClass.php$0 ➔ foo()   A
last analyzed

Complexity

Conditions 1

Size

Total Lines 3

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
cc 1
c 0
b 0
f 0
dl 0
loc 3
rs 10
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