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

named   A

Complexity

Total Complexity 2

Size/Duplication

Total Lines 18
Duplicated Lines 0 %

Importance

Changes 0
Metric Value
wmc 2
eloc 9
dl 0
loc 18
rs 10
c 0
b 0
f 0

2 Methods

Rating   Name   Duplication   Size   Complexity  
A keyValueSerializerIs() 0 3 1
A __construct() 0 4 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