prefix::__construct()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
eloc 2
dl 0
loc 4
rs 10
c 0
b 0
f 0
cc 1
nc 1
nop 2
1
<?php namespace norsys\score\php\string\recipient;
2
3
use norsys\score\php;
4
5
class prefix
6
	implements
7
		php\string\recipient
8
{
9
	private
10
		$prefix,
11
		$recipient
12
	;
13
14
	function __construct(string $prefix, php\string\recipient $recipient)
15
	{
16
		$this->prefix = $prefix;
17
		$this->recipient = $recipient;
18
	}
19
20
	function stringIs(string $string) :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...
21
	{
22
		$this->recipient->stringIs($this->prefix . $string);
23
	}
24
}
25