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

Enum::requiresSQLCommentHint()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 3
Code Lines 1

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 0
CRAP Score 2

Importance

Changes 0
Metric Value
eloc 1
dl 0
loc 3
ccs 0
cts 3
cp 0
rs 10
c 0
b 0
f 0
cc 1
nc 1
nop 1
crap 2
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