ClassWithRequiredArrayInConstructor::__construct()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 5

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
dl 0
loc 5
rs 10
c 0
b 0
f 0
cc 1
nc 1
nop 2
1
<?php declare(strict_types = 1);
2
3
namespace Mocktainer;
4
5
class ClassWithRequiredArrayInConstructor
6
{
7
8
	/** @var \Mocktainer\FooService */
9
	public $fooService;
10
11
	/** @var mixed[] */
12
	public $options;
13
14
	/**
15
	 * @param \Mocktainer\FooService $fooService
16
	 * @param mixed[] $options
17
	 */
18
	public function __construct(FooService $fooService, array $options)
19
	{
20
		$this->fooService = $fooService;
21
		$this->options = $options;
22
	}
23
24
}
25