Completed
Push — master ( e6cddd...28dffb )
by Jakob
01:34
created

Listing::checkMember()   A

Complexity

Conditions 2
Paths 2

Size

Total Lines 8
Code Lines 5

Duplication

Lines 8
Ratio 100 %

Importance

Changes 0
Metric Value
dl 8
loc 8
rs 9.4285
c 0
b 0
f 0
nc 2
cc 2
eloc 5
nop 1

1 Method

Rating   Name   Duplication   Size   Complexity  
A Listing::implode() 0 4 1
1
<?php declare(strict_types = 1);
2
3
namespace JSKOS;
4
5
use InvalidArgumentException;
6
7
/**
8
 * A JSKOS List as defined by JSKOS specification.
9
 */
10
class Listing extends Container
11
{
12
    use StringContainer;
13
14
    /**
15
     * Join List members with a string
16
     * @param $glue string
17
     */
18
    public function implode(string $glue): string
19
    {
20
        return implode($glue, $this->members);
21
    }
22
}
23