Completed
Pull Request — master (#116)
by Arnaud
05:17
created

FieldDefinition   A

Complexity

Total Complexity 3

Size/Duplication

Total Lines 26
Duplicated Lines 0 %

Importance

Changes 0
Metric Value
eloc 7
dl 0
loc 26
rs 10
c 0
b 0
f 0
wmc 3

3 Methods

Rating   Name   Duplication   Size   Complexity  
A getType() 0 3 1
A __construct() 0 4 1
A getOptions() 0 3 1
1
<?php
2
3
namespace LAG\AdminBundle\Field\Definition;
4
5
class FieldDefinition implements FieldDefinitionInterface
6
{
7
    /**
8
     * @var string
9
     */
10
    private $type;
11
12
    /**
13
     * @var array
14
     */
15
    private $options;
16
17
    public function __construct(string $type, array $options = [])
18
    {
19
        $this->type = $type;
20
        $this->options = $options;
21
    }
22
23
    public function getType(): string
24
    {
25
        return $this->type;
26
    }
27
28
    public function getOptions(): array
29
    {
30
        return $this->options;
31
    }
32
}
33