Enum   A
last analyzed

Complexity

Total Complexity 2

Size/Duplication

Total Lines 12
Duplicated Lines 0 %

Test Coverage

Coverage 100%

Importance

Changes 0
Metric Value
eloc 4
dl 0
loc 12
ccs 4
cts 4
cp 1
rs 10
c 0
b 0
f 0
wmc 2

2 Methods

Rating   Name   Duplication   Size   Complexity  
A getType() 0 3 1
A getValues() 0 3 1
1
<?php declare(strict_types=1);
2
3
namespace Igni\Storage\Mapping\Annotation\Property;
4
5
use Igni\Storage\Mapping\Annotation\Property;
6
7
/**
8
 * @Annotation
9
 */
10
class Enum extends Property
11
{
12
    public $values;
13
14 22
    public function getType(): string
15
    {
16 22
        return 'enum';
17
    }
18
19 22
    public function getValues(): array
20
    {
21 22
        return $this->values ?? (array) $this->value;
22
    }
23
}
24