Passed
Push — master ( 42f7e7...125d75 )
by Frédéric
02:06
created

any   A

Complexity

Total Complexity 2

Size/Duplication

Total Lines 16
Duplicated Lines 0 %

Importance

Changes 0
Metric Value
wmc 2
eloc 7
dl 0
loc 16
rs 10
c 0
b 0
f 0

2 Methods

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 3 1
A recipientOfSemverNumberAsStringIs() 0 3 1
1
<?php namespace norsys\score\composer\depedency\version\semver\number\converter\toString;
2
3
use norsys\score\{ composer\depedency\version\semver\number, php };
4
5
class any
6
	implements
7
		number\converter\toString
8
{
9
	private
10
		$string
11
	;
12
13
	function __construct(string $string)
14
	{
15
		$this->string = $string;
16
	}
17
18
	function recipientOfSemverNumberAsStringIs(number $number, 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->string);
21
	}
22
}
23