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

LanguageMapOfStrings   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 12
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 2

Importance

Changes 0
Metric Value
wmc 1
lcom 0
cbo 2
dl 0
loc 12
rs 10
c 0
b 0
f 0

1 Method

Rating   Name   Duplication   Size   Complexity  
A 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