Completed
Push — master ( 996144...ffdc94 )
by Frédéric
03:10
created

join::stringIs()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 11
Code Lines 5

Duplication

Lines 0
Ratio 0 %

Importance

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