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

LanguageMapOfStrings::jsonLDSerialize()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
dl 0
loc 4
c 0
b 0
f 0
rs 10
cc 1
eloc 2
nc 1
nop 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