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

CompletionResult::isDescriptive()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 4

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
dl 0
loc 4
rs 10
c 0
b 0
f 0
cc 1
nc 1
nop 0
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