Passed
Push — master ( b43f4d...e18e45 )
by Emmanuel
03:23
created

Enum   A

Complexity

Total Complexity 3

Size/Duplication

Total Lines 24
Duplicated Lines 0 %

Test Coverage

Coverage 0%

Importance

Changes 0
Metric Value
wmc 3
eloc 4
dl 0
loc 24
ccs 0
cts 11
cp 0
rs 10
c 0
b 0
f 0

3 Methods

Rating   Name   Duplication   Size   Complexity  
A getName() 0 3 1
A getSQLDeclaration() 0 3 1
A requiresSQLCommentHint() 0 3 1
1
<?php
2
3
namespace Edyan\Neuralyzer\Doctrine\Type;
4
5
use Doctrine\DBAL\Types\Type;
6
use Doctrine\DBAL\Platforms\AbstractPlatform;
7
8
class Enum extends Type
9
{
10
    /**
11
     * {@inheritdoc}
12
     */
13
    public function getName()
14
    {
15
        return 'enum';
16
    }
17
18
    /**
19
     * {@inheritdoc}
20
     */
21
    public function getSQLDeclaration(array $fieldDeclaration, AbstractPlatform $platform)
22
    {
23
        return 'ENUM()';
24
    }
25
26
    /**
27
     * {@inheritdoc}
28
     */
29
    public function requiresSQLCommentHint(AbstractPlatform $platform)
30
    {
31
        return true;
32
    }
33
}
34