LanguageMapOfStrings::jsonLDSerialize()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 5

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
dl 0
loc 5
rs 10
c 0
b 0
f 0
cc 1
nc 1
nop 2
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
    public function jsonLDSerialize(string $context = self::DEFAULT_CONTEXT, bool $types = null)
15
    {
16
        ksort($this->members);
17
        return (object)$this->members;
18
    }
19
}
20