official::recipientOfPhpMethodAsStringIs()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 40
Code Lines 21

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
eloc 21
dl 0
loc 40
rs 9.584
c 0
b 0
f 0
cc 1
nc 1
nop 2
1
<?php namespace norsys\score\php\method\converter\toString;
2
3
use norsys\score\php\{
4
	aClass,
5
	method,
6
	method\converter\toString,
7
	string\recipient,
8
	block
9
};
10
use norsys\score\trampoline;
11
12
class official
13
	implements
14
		toString
15
{
16
	function recipientOfPhpMethodAsStringIs(method $method, 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...
17
	{
18
		(
19
			new trampoline\container\fifo(
20
				new trampoline\functor(
21
					function($block) use ($method)
22
					{
23
						$method
24
							->recipientOfPhpClassNameFromToStringConverterIs(
25
								new aClass\name\converter\toString\fqcn,
26
								new recipient\block($block)
27
							)
28
						;
29
					}
30
				),
31
				new trampoline\functor(
32
					function($block) use ($method)
33
					{
34
						$method
35
							->recipientOfPhpMethodNameFromToStringConverterIs(
36
								new method\name\converter\toString\raw,
37
								new recipient\block($block)
38
							)
39
						;
40
					}
41
				)
42
			)
43
		)
44
			->argumentsForBlockAre(
45
				new block\functor(
46
					function($fqcn, $method) use ($recipient)
47
					{
48
						(
49
							new recipient\surround(
50
								$fqcn,
51
								$method,
52
								$recipient
53
							)
54
						)
55
							->stringIs('::')
56
						;
57
					}
58
				)
59
			)
60
		;
61
	}
62
}
63