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

LanguageMapOfStrings::checkMember()   A

Complexity

Conditions 2
Paths 2

Size

Total Lines 10
Code Lines 6

Duplication

Lines 10
Ratio 100 %

Importance

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

1 Method

Rating   Name   Duplication   Size   Complexity  
A LanguageMapOfStrings::jsonLDSerialize() 0 4 1
1
<?php declare(strict_types = 1);
2
3
namespace JSKOS;
4
5
use InvalidArgumentException;
6
7
/**
8
 * Language map of strings for prefLabel.
9
 */
10
class LanguageMapOfStrings extends LanguageMap
11
{
12
    use StringContainer;
13
14
    /**
15
     * Return a data structure to serialize this container as JSON.
16
     */
17
    public function jsonLDSerialize(string $context = self::DEFAULT_CONTEXT)
18
    {
19
        return (object)$this->members;
20
    }
21
}
22