Completed
Push — master ( d98c10...e4052f )
by Nikolas
04:37
created

ActionListItem   A

Complexity

Total Complexity 4

Size/Duplication

Total Lines 43
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 0

Importance

Changes 1
Bugs 0 Features 0
Metric Value
wmc 4
c 1
b 0
f 0
lcom 0
cbo 0
dl 0
loc 43
rs 10

4 Methods

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 5 1
A getId() 0 3 1
A getCaption() 0 3 1
A getDescription() 0 3 1
1
<?php
2
namespace rtens\domin\delivery\web\home;
3
4
class ActionListItem {
5
6
    /** @var string */
7
    private $id;
8
9
    /** @var string */
10
    private $caption;
11
12
    /** @var string */
13
    private $description;
14
15
    /**
16
     * @param string $id
17
     * @param string $caption
18
     * @param string $description
19
     */
20
    public function __construct($id, $caption, $description) {
21
        $this->id = $id;
22
        $this->caption = $caption;
23
        $this->description = $description;
24
    }
25
26
    /**
27
     * @return string
28
     */
29
    public function getId() {
30
        return $this->id;
31
    }
32
33
    /**
34
     * @return string
35
     */
36
    public function getCaption() {
37
        return $this->caption;
38
    }
39
40
    /**
41
     * @return string
42
     */
43
    public function getDescription() {
44
        return $this->description;
45
    }
46
}