ClassWithDefaultArgumentValueBetweenArguments   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 25
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 0

Importance

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

1 Method

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 6 1
1
<?php declare(strict_types = 1);
2
3
namespace Mocktainer;
4
5
class ClassWithDefaultArgumentValueBetweenArguments
6
{
7
8
	/** @var \Mocktainer\FooService */
9
	public $fooService;
10
11
	/** @var mixed[] */
12
	public $options;
13
14
	/** @var \Mocktainer\BarService */
15
	public $barService;
16
17
	/**
18
	 * @param \Mocktainer\FooService $fooService
19
	 * @param mixed[] $options
20
	 * @param \Mocktainer\BarService $barService
21
	 */
22
	public function __construct(FooService $fooService, array $options = ['foobar' => 'foobarValue'], BarService $barService)
23
	{
24
		$this->fooService = $fooService;
25
		$this->options = $options;
26
		$this->barService = $barService;
27
	}
28
29
}
30