MocktainerTestCaseTrait   A
last analyzed

Complexity

Total Complexity 2

Size/Duplication

Total Lines 16
Duplicated Lines 0 %

Coupling/Cohesion

Components 1
Dependencies 1

Importance

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

1 Method

Rating   Name   Duplication   Size   Complexity  
A getMocktainer() 0 8 2
1
<?php declare(strict_types = 1);
2
3
namespace Mocktainer;
4
5
trait MocktainerTestCaseTrait
6
{
7
8
	/** @var \Mocktainer\Mocktainer */
9
	private $mocktainer;
10
11
	public function getMocktainer(): Mocktainer
12
	{
13
		if ($this->mocktainer === null) {
14
			$this->mocktainer = new Mocktainer($this);
15
		}
16
17
		return $this->mocktainer;
18
	}
19
20
}
21