Completed
Push — master ( df5bb2...a0585b )
by Frédéric
03:38
created

recipientOfNetUriHierPartAsStringFromConverterIs()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 3
Code Lines 1

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
eloc 1
dl 0
loc 3
rs 10
c 0
b 0
f 0
cc 1
nc 1
nop 2
1
<?php namespace norsys\score\net\uri;
2
3
use norsys\score\{
4
	net\uri,
5
	php\string\recipient
6
};
7
8
class any
9
	implements
10
		uri
11
{
12
	private
13
		$scheme,
14
		$hierPart
15
	;
16
17
	function __construct(uri\scheme $scheme, uri\hierPart $hierPart)
18
	{
19
		$this->scheme = $scheme;
20
		$this->hierPart = $hierPart;
21
	}
22
23
	function recipientOfUriAsStringFromConverterIs(uri\converter\toString $converter, 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...
24
	{
25
		$converter->recipientOfNetUriAsStringIs($this, $recipient);
26
	}
27
28
	function recipientOfNetUriSchemeAsStringFromConverterIs(uri\scheme\converter\toString $converter, 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...
29
	{
30
		$converter->recipientOfNetUriSchemeAsStringIs($this->scheme, $recipient);
31
	}
32
33
	function recipientOfNetUriHierPartAsStringFromConverterIs(uri\hierPart\converter\toString $converter, 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...
34
	{
35
		$converter->recipientOfNetUriHierPartAsStringIs($this->hierPart, $recipient);
36
	}
37
}
38