Completed
Pull Request — master (#90)
by
unknown
01:29
created

CompletionResult   A

Complexity

Total Complexity 3

Size/Duplication

Total Lines 36
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 0

Importance

Changes 0
Metric Value
wmc 3
lcom 0
cbo 0
dl 0
loc 36
rs 10
c 0
b 0
f 0

3 Methods

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 7 1
A isDescriptive() 0 4 1
A getValues() 0 4 1
1
<?php
2
/**
3
 * @copyright Visma Digital Commerce AS 2019
4
 * @license Proprietary
5
 * @author Marcus Pettersen Irgens <[email protected]>
6
 */
7
8
namespace Stecman\Component\Symfony\Console\BashCompletion\Completion;
9
10
11
class CompletionResult implements CompletionResultInterface
12
{
13
    /**
14
     * @var string[]
15
     */
16
    private $values;
17
18
    /**
19
     * @var bool
20
     */
21
    private $descriptive;
22
23
    public function __construct(
24
        $values,
25
        $descriptive = false
26
    ) {
27
        $this->values = $values;
28
        $this->descriptive = $descriptive;
29
    }
30
31
    /**
32
     * @return bool
33
     */
34
    public function isDescriptive()
35
    {
36
        return $this->descriptive;
37
    }
38
39
    /**
40
     * @return string[]
41
     */
42
    public function getValues()
43
    {
44
        return $this->values;
45
    }
46
}
47