any   A
last analyzed

Complexity

Total Complexity 2

Size/Duplication

Total Lines 19
Duplicated Lines 0 %

Importance

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

2 Methods

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 3 1
A keyValueSerializerIs() 0 6 1
1
<?php namespace norsys\score\composer\autoload\psr4;
2
3
use norsys\score\composer\{ autoload\psr4, part\name\autoload };
4
use norsys\score\serializer\{ keyValue as serializer, keyValue\part\container\fifo };
5
6
class any
7
	implements
8
		psr4
9
{
10
	private
11
		$mappings
12
	;
13
14
	function __construct(psr4\mapping... $mappings)
15
	{
16
		$this->mappings = $mappings;
17
	}
18
19
	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...
20
	{
21
		$serializer
22
			->objectToSerializeWithNameIs(
23
				new autoload\psr4,
24
				new fifo(... $this->mappings)
25
			)
26
		;
27
	}
28
}
29