1 | <?php |
||
14 | class PackageNamePrompt implements PromptInterface |
||
15 | { |
||
16 | /** |
||
17 | * @var GitConfig |
||
18 | */ |
||
19 | private $gitConfig; |
||
20 | |||
21 | 1 | public function __construct(GitConfig $gitConfig) |
|
25 | |||
26 | /** |
||
27 | * @return GitConfig |
||
28 | */ |
||
29 | 1 | public function getGitConfig() |
|
33 | |||
34 | /** |
||
35 | * @return string|null |
||
36 | */ |
||
37 | 1 | public function getDefault() |
|
41 | |||
42 | /** |
||
43 | * @param OutputInterface $output |
||
44 | * @param DialogHelper $dialog |
||
45 | * @return array |
||
46 | */ |
||
47 | 1 | public function getValues(OutputInterface $output, DialogHelper $dialog) |
|
68 | |||
69 | /** |
||
70 | * Translates a string with underscores |
||
71 | * into camel case (e.g. first-name -> FirstName) |
||
72 | * |
||
73 | * @param string $text String in underscore format |
||
74 | * @return string $text translated into camel caps |
||
75 | */ |
||
76 | 5 | public function toCamelCase($text) |
|
86 | } |
||
87 |