__construct()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 6

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
dl 0
loc 6
rs 10
c 0
b 0
f 0
cc 1
nc 1
nop 3
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