LanguageMapOfStrings   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 10
Duplicated Lines 0 %

Coupling/Cohesion

Components 1
Dependencies 2

Importance

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

1 Method

Rating   Name   Duplication   Size   Complexity  
A jsonLDSerialize() 0 5 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
    public function jsonLDSerialize(string $context = self::DEFAULT_CONTEXT, bool $types = null)
15
    {
16
        ksort($this->members);
17
        return (object)$this->members;
18
    }
19
}
20