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

FieldDefinition::getType()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 3
Code Lines 1

Duplication

Lines 0
Ratio 0 %

Importance

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