1 | <?php |
||
16 | class TitlePrompt implements PromptInterface |
||
17 | { |
||
18 | /** |
||
19 | * @var Client |
||
20 | */ |
||
21 | private $github; |
||
22 | |||
23 | /** |
||
24 | * @var GitConfig |
||
25 | */ |
||
26 | private $gitConfig; |
||
27 | |||
28 | /** |
||
29 | * @var Inflector |
||
30 | */ |
||
31 | private $inflector; |
||
32 | |||
33 | /** |
||
34 | * @param GitConfig $gitConfig |
||
35 | * @param Client $github |
||
36 | * @param Inflector $inflector |
||
37 | */ |
||
38 | 1 | public function __construct(GitConfig $gitConfig, Client $github, Inflector $inflector) |
|
39 | { |
||
40 | 1 | $this->gitConfig = $gitConfig; |
|
41 | 1 | $this->github = $github; |
|
42 | 1 | $this->inflector = $inflector; |
|
43 | 1 | } |
|
44 | |||
45 | /** |
||
46 | * @return GitConfig |
||
47 | */ |
||
48 | 1 | public function getGitConfig() |
|
52 | |||
53 | /** |
||
54 | * @return Client |
||
55 | */ |
||
56 | 1 | public function getGithub() |
|
60 | |||
61 | /** |
||
62 | * @return Inflector |
||
63 | */ |
||
64 | 1 | public function getInflector() |
|
68 | |||
69 | /** |
||
70 | * @return string |
||
71 | */ |
||
72 | 2 | public function getDefault() |
|
84 | |||
85 | /** |
||
86 | * @param OutputInterface $output |
||
87 | * @param DialogHelper $dialog |
||
88 | * @return array |
||
89 | */ |
||
90 | 1 | public function getValues(OutputInterface $output, DialogHelper $dialog) |
|
105 | } |
||
106 | |||
108 |