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

join   A

Complexity

Total Complexity 2

Size/Duplication

Total Lines 24
Duplicated Lines 0 %

Importance

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

2 Methods

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