any::recipientOfOperationWithFsPathIs()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 23
Code Lines 18

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
eloc 18
dl 0
loc 23
rs 9.6666
c 0
b 0
f 0
cc 1
nc 1
nop 2
1
<?php namespace norsys\score\fs\path\operator\unary\filename;
2
3
use norsys\score\fs\{ path, path\recipient, path\factory\filename\container as factory, path\filename\container\operator, path\filename\container };
4
5
class any
6
{
7
	private
8
		$path,
9
		$factory,
10
		$operator
11
	;
12
13
	function __construct(path $path, factory $factory, operator $operator)
14
	{
15
		$this->path = $path;
16
		$this->factory = $factory;
17
		$this->operator = $operator;
18
	}
19
20
	function recipientOfOperationWithFsPathIs(path $otherPath, 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...
21
	{
22
		$this->path
23
			->recipientOfFilenameContainerFromFsPathIs(
24
				new container\recipient\functor(
25
					function($containerFromPath) use ($otherPath, $recipient)
26
					{
27
						$otherPath
28
							->recipientOfFilenameContainerFromFsPathIs(
29
								new container\recipient\functor(
30
									function($containerFromOtherPath) use ($containerFromPath, $recipient)
31
									{
32
										$this->operator
33
											->recipientOfOperationWithContainerAndContainerOfFsPathFilenameIs(
34
												$containerFromPath,
35
												$containerFromOtherPath,
36
												new container\recipient\functor(
37
													function($container) use ($recipient)
38
													{
39
														$this->factory
40
															->recipientOfFsPathWithFsPathFilenameFromContainerIs(
41
																$container,
42
																$recipient
43
															)
44
														;
45
													}
46
												)
47
											)
48
										;
49
									}
50
								)
51
							)
52
						;
53
					}
54
				)
55
			)
56
		;
57
58
	}
59
}
60