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

AbstractConfigurable   A

Complexity

Total Complexity 4

Size/Duplication

Total Lines 23
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 0

Importance

Changes 0
Metric Value
wmc 4
lcom 0
cbo 0
dl 0
loc 23
rs 10
c 0
b 0
f 0

3 Methods

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 5 2
A getType() 0 4 1
A getOptions() 0 4 1
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