fqcn   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 42
Duplicated Lines 0 %

Importance

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

1 Method

Rating   Name   Duplication   Size   Complexity  
A recipientOfPhpClassNameAsStringIs() 0 38 1
1
<?php namespace norsys\score\php\aClass\name\converter\toString;
2
3
use norsys\score\php\{
4
	identifier,
5
	aNamespace,
6
	aClass\name\converter\toString,
7
	aClass\name,
8
	string\recipient,
9
	block
10
};
11
use norsys\score\trampoline;
12
13
class fqcn
14
	implements
15
		toString
16
{
17
	function recipientOfPhpClassNameAsStringIs(name $name, 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...
18
	{
19
		(
20
			new trampoline\container\fifo(
21
				new trampoline\functor(
22
					function($block) use ($name) {
23
						$name
24
							->recipientOfPhpNamespaceFromToStringConverterIs(
25
								new aNamespace\converter\toString\official,
26
								new recipient\block($block)
27
							)
28
						;
29
					}
30
				),
31
				new trampoline\functor(
32
					function($block) use ($name) {
33
						$name
34
							->recipientOfPhpIdentifierFromToStringConverterIs(
35
								new identifier\converter\toString\raw,
36
								new recipient\block($block)
37
							)
38
						;
39
					}
40
				)
41
			)
42
		)
43
			->argumentsForBlockAre(
44
				new block\functor(
45
					function($namespace, $identifier) use ($recipient)
46
					{
47
						(
48
							new recipient\surround(
49
								$namespace,
50
								$identifier,
51
								$recipient
52
							)
53
						)
54
							->stringIs('\\')
55
						;
56
					}
57
				)
58
			)
59
		;
60
	}
61
}
62