Completed
Pull Request — master (#11524)
by Juho
106:45 queued 95:41
created

Bar   A

Complexity

Total Complexity 2

Size/Duplication

Total Lines 10
Duplicated Lines 0 %

Test Coverage

Coverage 100%

Importance

Changes 0
Metric Value
dl 0
loc 10
ccs 5
cts 5
cp 1
rs 10
c 0
b 0
f 0
wmc 2

2 Methods

Rating   Name   Duplication   Size   Complexity  
A test() 0 2 1
A __construct() 0 2 1
1
<?php
2
3
namespace Elgg\Blog;
4
5
class Bar {
6
7
	private $foo;
8
9 11
	public function __construct(Foo $foo) {
10 11
		$this->foo = $foo;
11 11
	}
12
13 11
	public function test ($test) {
14 11
		$this->foo->test("Calling Bar::test() with value: $test");
15 11
	}
16
17
}
18