Passed
Push — master ( 74317a...f8ed32 )
by Christopher
04:04
created

EDMSimpleType   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 23
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 1

Importance

Changes 1
Bugs 0 Features 0
Metric Value
wmc 1
c 1
b 0
f 0
lcom 0
cbo 1
dl 0
loc 23
rs 10

1 Method

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 20 1
1
<?php
2
namespace AlgoWeb\ODataMetadata\MetadataV3\edm\SimpleTypes;
3
4
use AlgoWeb\ODataMetadata\Abstracts\EDMSimpleTypeBase;
5
6
class EDMSimpleType extends EDMSimpleTypeBase
7
{
8
    public function __construct($value)
9
    {
10
        parent::__construct($value);
11
        $this->addEnumeration('Geography');
12
        $this->addEnumeration('Point');
13
        $this->addEnumeration('LineString');
14
        $this->addEnumeration('Polygon');
15
        $this->addEnumeration('MultiPoint');
16
        $this->addEnumeration('MultiLineString');
17
        $this->addEnumeration('MultiPolygon');
18
        $this->addEnumeration('GeographyCollection');
19
        $this->addEnumeration('GeometricPoint');
20
        $this->addEnumeration('GeometricLineString');
21
        $this->addEnumeration('GeometricPolygon');
22
        $this->addEnumeration('GeometricMultiPoint');
23
        $this->addEnumeration('GeometricMultiLineString');
24
        $this->addEnumeration('GeometricMultiPolygon');
25
        $this->addEnumeration('GeometryCollection');
26
27
    }
28
}