fqcn::recipientOfPhpClassNameAsStringIs()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 38
Code Lines 21

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
eloc 21
dl 0
loc 38
rs 9.584
c 0
b 0
f 0
cc 1
nc 1
nop 2
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