any   A
last analyzed

Complexity

Total Complexity 3

Size/Duplication

Total Lines 21
Duplicated Lines 0 %

Importance

Changes 0
Metric Value
wmc 3
eloc 8
dl 0
loc 21
rs 10
c 0
b 0
f 0

3 Methods

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 3 1
A recipientOfStringIs() 0 3 1
A recipientOfIntegerIs() 0 3 1
1
<?php namespace norsys\score\php\integer;
2
3
use norsys\score\php;
4
5
class any
6
	implements
7
		php\integer\provider
8
{
9
	private
10
		$integer
11
	;
12
13
	function __construct(int $integer)
14
	{
15
		$this->integer = $integer;
16
	}
17
18
	function recipientOfStringIs(php\string\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...
19
	{
20
		$recipient->stringIs($this->integer);
21
	}
22
23
	function recipientOfIntegerIs(php\integer\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
		$recipient->integerIs($this->integer);
26
	}
27
}
28