any   A
last analyzed

Complexity

Total Complexity 2

Size/Duplication

Total Lines 38
Duplicated Lines 0 %

Importance

Changes 0
Metric Value
wmc 2
eloc 26
dl 0
loc 38
rs 10
c 0
b 0
f 0

2 Methods

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 5 1
A recipientOfOperationWithFsPathIs() 0 23 1
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