named::__construct()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
eloc 2
dl 0
loc 4
rs 10
c 0
b 0
f 0
cc 1
nc 1
nop 2
1
<?php namespace norsys\score\composer\part\anArray;
2
3
use norsys\score\composer\{ part, part\anArray, part\name };
4
use norsys\score\serializer\keyValue as serializer;
5
6
class named
7
	implements
8
		anArray
9
{
10
	private
11
		$name,
12
		$part
13
	;
14
15
	function __construct(name $name, part $part)
16
	{
17
		$this->name = $name;
18
		$this->part = $part;
19
	}
20
21
	function keyValueSerializerIs(serializer $serializer) :void
0 ignored issues
show
Best Practice introduced by
It is generally recommended to explicitly declare the visibility for methods.

Adding explicit visibility (private, protected, or public) is generally recommend to communicate to other developers how, and from where this method is intended to be used.

Loading history...
22
	{
23
		$serializer->arrayToSerializeWithNameIs($this->name, $this->part);
24
	}
25
}
26