Completed
Push — php70 ( 1282e6...33bebb )
by Wim
02:20
created

anonymous//Tests/sniff-examples/new_anonymous_classes.php$0   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 5
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 0

Importance

Changes 0
Metric Value
c 0
b 0
f 0
dl 0
loc 5
rs 10
wmc 1
lcom 0
cbo 0

1 Method

Rating   Name   Duplication   Size   Complexity  
A new_anonymous_classes.php$0 ➔ log() 0 3 1
1
<?php
2
3
$app = new Application;
4
$app->setLogger(new class implements Logger {
5
    public function log(string $msg) {
6
        echo $msg;
7
    }
8
});