prefix   A
last analyzed

Complexity

Total Complexity 2

Size/Duplication

Total Lines 18
Duplicated Lines 0 %

Importance

Changes 0
Metric Value
wmc 2
eloc 9
dl 0
loc 18
rs 10
c 0
b 0
f 0

2 Methods

Rating   Name   Duplication   Size   Complexity  
A stringIs() 0 3 1
A __construct() 0 4 1
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