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

prefixed::recipientOfStringIs()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 5
Code Lines 3

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
eloc 3
dl 0
loc 5
rs 10
c 0
b 0
f 0
cc 1
nc 1
nop 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