Completed
Push — master ( aee42a...b52690 )
by Wim
8s
created

bar::__construct()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 3
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 1
Metric Value
cc 1
eloc 2
c 1
b 0
f 1
nc 1
nop 0
dl 0
loc 3
rs 10
1
<?php
2
class foo {
3
    function foo() {
4
        echo 'I am the constructor - but I shouldn\'t be';
5
    }
6
}
7
8
class bar {
9
    function bar() {
10
        echo 'I am just the foo method';
11
    }
12
    function __construct() {
13
        echo 'I am the real constructor';
14
    }
15
}
16