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

CompletionResult::getValues()   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
namespace Stecman\Component\Symfony\Console\BashCompletion\Completion;
4
5
class CompletionResult implements CompletionResultInterface
6
{
7
    /**
8
     * @var string[]
9
     */
10
    private $values;
11
12
    /**
13
     * @var bool
14
     */
15
    private $descriptive;
16
17
    public function __construct(
18
        $values,
19
        $descriptive = false
20
    ) {
21
        $this->values = $values;
22
        $this->descriptive = $descriptive;
23
    }
24
25
    /**
26
     * @return bool
27
     */
28
    public function isDescriptive()
29
    {
30
        return $this->descriptive;
31
    }
32
33
    /**
34
     * @return string[]
35
     */
36
    public function getValues()
37
    {
38
        return $this->values;
39
    }
40
}
41