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

prefixed   A

Complexity

Total Complexity 8

Size/Duplication

Total Lines 48
Duplicated Lines 0 %

Importance

Changes 0
Metric Value
wmc 8
eloc 15
dl 0
loc 48
rs 10
c 0
b 0
f 0

8 Methods

Rating   Name   Duplication   Size   Complexity  
A recipientOfMajorNumberInSemverIs() 0 3 1
A __construct() 0 3 1
A recipientOfMinorNumberInSemverIs() 0 3 1
A recipientOfMinorNumberAsStringFromConverterIs() 0 3 1
A recipientOfStringIs() 0 5 1
A recipientOfMajorNumberAsStringFromConverterIs() 0 3 1
A recipientOfPatchNumberInSemverIs() 0 3 1
A recipientOfPatchNumberAsStringFromConverterIs() 0 3 1
1
<?php namespace norsys\score\composer\depedency\version\semver;
2
3
use norsys\score\{ composer\depedency\version\semver, php };
4
5
class prefixed
6
	implements
7
		semver
8
{
9
	private
10
		$semver
11
	;
12
13
	function __construct(semver $semver)
14
	{
15
		$this->semver = $semver;
16
	}
17
18
	function recipientOfMajorNumberInSemverIs(semver\number\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
		$this->semver->recipientOfMajorNumberInSemverIs($recipient);
21
	}
22
23
	function recipientOfMajorNumberAsStringFromConverterIs(semver\number\converter\toString $converter, 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...
24
	{
25
		$this->semver->recipientOfMajorNumberAsStringFromConverterIs($converter, $recipient);
26
	}
27
28
	function recipientOfMinorNumberInSemverIs(semver\number\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
		$this->semver->recipientOfMinorNumberInSemverIs($recipient);
31
	}
32
33
	function recipientOfMinorNumberAsStringFromConverterIs(semver\number\converter\toString $converter, 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...
34
	{
35
		$this->semver->recipientOfMinorNumberAsStringFromConverterIs($converter, $recipient);
36
	}
37
38
	function recipientOfPatchNumberInSemverIs(semver\number\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...
39
	{
40
		$this->semver->recipientOfPatchNumberInSemverIs($recipient);
41
	}
42
43
	function recipientOfPatchNumberAsStringFromConverterIs(semver\number\converter\toString $converter, 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...
44
	{
45
		$this->semver->recipientOfPatchNumberAsStringFromConverterIs($converter, $recipient);
46
	}
47
48
	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...
49
	{
50
		$this->semver
51
			->recipientOfStringIs(
52
				new php\string\recipient\prefix('v', $recipient)
53
			)
54
		;
55
	}
56
}
57