Completed
Pull Request — master (#21)
by Daniel
02:31
created

ActionMetadata   A

Complexity

Total Complexity 4

Size/Duplication

Total Lines 32
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 0

Importance

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

4 Methods

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 9 1
A getName() 0 4 1
A getType() 0 4 1
A getOptions() 0 4 1
1
<?php
2
3
declare(strict_types=1);
4
5
namespace Psi\Component\Grid\Metadata;
6
7
final class ActionMetadata
8
{
9
    private $name;
10
    private $type;
11
    private $options;
12
13
    public function __construct(
14
        string $name,
15
        string $type,
16
        array  $options
17
    ) {
18
        $this->name = $name;
19
        $this->type = $type;
20
        $this->options = $options;
21
    }
22
23
    public function getName(): string
24
    {
25
        return $this->name;
26
    }
27
28
    public function getType(): string
29
    {
30
        return $this->type;
31
    }
32
33
    public function getOptions() 
34
    {
35
        return $this->options;
36
    }
37
    
38
}
39