1 | <?php |
||
16 | class BugsPrompt implements PromptInterface |
||
17 | { |
||
18 | /** |
||
19 | * Github Client |
||
20 | * |
||
21 | * @var Client |
||
22 | */ |
||
23 | private $github; |
||
24 | |||
25 | /** |
||
26 | * @var GitConfig |
||
27 | */ |
||
28 | private $gitConfig; |
||
29 | |||
30 | /** |
||
31 | * @param GitConfig $gitConfig |
||
32 | * @param Client $github |
||
33 | */ |
||
34 | 1 | public function __construct(GitConfig $gitConfig, Client $github) |
|
35 | { |
||
36 | 1 | $this->github = $github; |
|
37 | 1 | $this->gitConfig = $gitConfig; |
|
38 | 1 | } |
|
39 | |||
40 | /** |
||
41 | * @return GitConfig |
||
42 | */ |
||
43 | 1 | public function getGitConfig() |
|
47 | |||
48 | /** |
||
49 | * @return Client |
||
50 | */ |
||
51 | 1 | public function getGithub() |
|
55 | |||
56 | /** |
||
57 | * @return string|null |
||
58 | */ |
||
59 | 2 | public function getDefault() |
|
70 | |||
71 | /** |
||
72 | * @param OutputInterface $output |
||
73 | * @param DialogHelper $dialog |
||
74 | * @return array |
||
75 | */ |
||
76 | 1 | public function getValues(OutputInterface $output, DialogHelper $dialog) |
|
96 | } |
||
97 |