aggregator   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 42
Duplicated Lines 0 %

Importance

Changes 0
Metric Value
wmc 1
eloc 23
dl 0
loc 42
rs 10
c 0
b 0
f 0

1 Method

Rating   Name   Duplication   Size   Complexity  
A recipientOfSemverVersionAsStringIs() 0 40 1
1
<?php namespace norsys\score\composer\depedency\version\semver\converter\toString\dot;
2
3
use norsys\score\php\string\{
4
	recipient,
5
	provider,
6
	buffer
7
};
8
use norsys\score\{
9
	composer\depedency\version\semver,
10
	php\block
11
};
12
13
class aggregator extends semver\converter\toString\dot
14
{
15
	function recipientOfSemverVersionAsStringIs(semver $version, recipient $recipient) :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...
16
	{
17
		(new buffer\join('.'))
18
			->recipientOfStringFromProviderIs(
19
				new provider\iterator\fifo(
20
					new provider\block(
21
						new block\functor(
22
							function($recipient) use ($version)
23
							{
24
								parent::recipientOfMajorInSemverVersionAsStringIs(
25
									$version,
26
									$recipient
27
								);
28
							}
29
						)
30
					),
31
					new provider\block(
32
						new block\functor(
33
							function($recipient) use ($version)
34
							{
35
								parent::recipientOfMinorInSemverVersionAsStringIs(
36
									$version,
37
									$recipient
38
								);
39
							}
40
						)
41
					),
42
					new provider\block(
43
						new block\functor(
44
							function($recipient) use ($version)
45
							{
46
								parent::recipientOfPatchInSemverVersionAsStringIs(
47
									$version,
48
									$recipient
49
								);
50
							}
51
						)
52
					)
53
				),
54
				$recipient
55
			)
56
		;
57
	}
58
}
59