Completed
Pull Request — master (#34)
by Daniel
02:15
created

AbstractConfigurable::getType()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
dl 0
loc 4
rs 10
c 0
b 0
f 0
cc 1
eloc 2
nc 1
nop 0
1
<?php
2
3
namespace Psi\Component\Grid\Metadata;
4
5
abstract class AbstractConfigurable
6
{
7
    private $type;
8
    private $options = [];
9
10
    public function __construct(string $type = null, array $options = [])
11
    {
12
        $this->type = $type ? : 'property';
13
        $this->options = $options;
14
    }
15
16
    public function getType(): string
17
    {
18
        return $this->type;
19
    }
20
21
    public function getOptions(): array
22
    {
23
        return $this->options;
24
    }
25
    
26
    
27
}
28