Completed
Push — master ( 37bfc3...885b19 )
by Frédéric
03:13
created

named::keyValueSerializerIs()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 3
Code Lines 1

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
eloc 1
dl 0
loc 3
rs 10
c 0
b 0
f 0
cc 1
nc 1
nop 1
1
<?php namespace norsys\score\composer\part\entity;
2
3
use norsys\score\composer\{
4
	part,
5
	part\entity,
6
	part\name
7
};
8
use norsys\score\serializer\keyValue as serializer;
9
10
class named
11
	implements
12
		entity
13
{
14
	private
15
		$name,
16
		$part
17
	;
18
19
	function __construct(name $name, part $part)
20
	{
21
		$this->name = $name;
22
		$this->part = $part;
23
	}
24
25
	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...
26
	{
27
		$serializer->objectToSerializeWithNameIs($this->name, $this->part);
28
	}
29
}
30