any   A
last analyzed

Complexity

Total Complexity 5

Size/Duplication

Total Lines 33
Duplicated Lines 0 %

Importance

Changes 0
Metric Value
wmc 5
eloc 12
dl 0
loc 33
rs 10
c 0
b 0
f 0

5 Methods

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 5 1
A recipientOfUserInfoInUriAuthorityAsStringFromConverterIs() 0 3 1
A recipientOfUriAuthorityAsStringFromConverterIs() 0 3 1
A recipientOfPortInUriAuthorityAsStringFromConverterIs() 0 3 1
A recipientOfHostInUriAuthorityAsStringFromConverterIs() 0 3 1
1
<?php namespace norsys\score\net\uri\authority;
2
3
use norsys\score\{
4
	net\uri\authority,
5
	net\uri\authority\user,
6
	net\host,
7
	net\port,
8
	php\string\recipient
9
};
10
11
class any
12
	implements
13
		authority
14
{
15
	private
16
		$userInfo
17
	;
18
19
	function __construct(host $host, port $port, user\info $userInfo)
20
	{
21
		$this->host = $host;
0 ignored issues
show
Bug Best Practice introduced by
The property host does not exist. Although not strictly required by PHP, it is generally a best practice to declare properties explicitly.
Loading history...
22
		$this->port = $port;
0 ignored issues
show
Bug Best Practice introduced by
The property port does not exist. Although not strictly required by PHP, it is generally a best practice to declare properties explicitly.
Loading history...
23
		$this->userInfo = $userInfo;
24
	}
25
26
	function recipientOfUriAuthorityAsStringFromConverterIs(authority\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...
27
	{
28
		$converter->recipientOfUriAuthorityAsStringIs($this, $recipient);
29
	}
30
31
	function recipientOfUserInfoInUriAuthorityAsStringFromConverterIs(user\info\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...
32
	{
33
		$converter->recipientOfUserInfoInUriAuthorityAsStringIs($this->userInfo, $recipient);
34
	}
35
36
	function recipientOfHostInUriAuthorityAsStringFromConverterIs(host\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...
37
	{
38
		$converter->recipientOfHostInUriAuthorityAsStringIs($this->host, $recipient);
39
	}
40
41
	function recipientOfPortInUriAuthorityAsStringFromConverterIs(port\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...
42
	{
43
		$converter->recipientOfNetPortAsStringIs($this->port, $recipient);
44
	}
45
}
46