Passed
Pull Request — master (#4)
by Christopher
08:06 queued 03:56
created

EDMSimpleType   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 9
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 1

Importance

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

1 Method

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 6 1
1
<?php
2
namespace AlgoWeb\ODataMetadata\Abstracts;
3
4
use AlgoWeb\xsdTypes\xsString;
5
6
abstract class EDMSimpleType extends xsString
0 ignored issues
show
Coding Style introduced by
EDMSimpleType does not seem to conform to the naming convention (^Abstract|Factory$).

This check examines a number of code elements and verifies that they conform to the given naming conventions.

You can set conventions for local variables, abstract classes, utility classes, constant, properties, methods, parameters, interfaces, classes, exceptions and special methods.

Loading history...
7
{
8
    public function __construct($value)
9
    {
10
        parent::__construct($value);
11
        $this->setEnumeration(['Binary','Boolean','Byte','DateTime','DateTimeOffset','Time','Decimal','Double',
12
            'Single','Guid','Int16','Int32','Int64','String','SByte']);
13
    }
14
}
15