recipient::stringIs()   A
last analyzed

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\serializer\keyValue\string;
2
3
use norsys\score\php;
4
use norsys\score\serializer\keyValue as serializer;
5
use norsys\score\composer\part\text;
6
7
class recipient
8
	implements
9
		php\string\recipient
10
{
11
	private
12
		$serializer
13
	;
14
15
	function __construct(serializer $serializer)
16
	{
17
		$this->serializer = $serializer;
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->serializer
23
			->textToSerializeIs(
24
				new text\any($string)
25
			)
26
		;
27
	}
28
}
29