1 | <?php |
||
16 | class AuthorQuestion extends Question |
||
17 | { |
||
18 | /** |
||
19 | * @param InputInterface $input |
||
20 | * @param OutputInterface $output |
||
21 | * @return int |
||
22 | * @throws \Exception |
||
23 | */ |
||
24 | 5 | public function execute(InputInterface $input, OutputInterface $output) |
|
30 | |||
31 | /** |
||
32 | * @param InputInterface $input |
||
33 | * @param OutputInterface $output |
||
34 | */ |
||
35 | 5 | private function setInitialAuthor(InputInterface $input, OutputInterface $output) |
|
43 | |||
44 | /** |
||
45 | * @param InputInterface $input |
||
46 | * @param OutputInterface $output |
||
47 | */ |
||
48 | 5 | private function setAuthorFromGit(InputInterface $input, OutputInterface $output) |
|
57 | |||
58 | /** |
||
59 | * @param InputInterface $input |
||
60 | * @param OutputInterface $output |
||
61 | */ |
||
62 | 3 | private function setAuthorFromQuestion(InputInterface $input, OutputInterface $output) |
|
72 | |||
73 | /** |
||
74 | * @param InputInterface $input |
||
75 | * @param OutputInterface $output |
||
76 | */ |
||
77 | 5 | private function setAdditionalAuthors(InputInterface $input, OutputInterface $output) |
|
83 | |||
84 | /** |
||
85 | * @return SimpleQuestion |
||
86 | */ |
||
87 | 3 | private function buildAuthorQuestion() |
|
95 | |||
96 | /** |
||
97 | * @return callable |
||
98 | */ |
||
99 | private function buildValidator() |
||
105 | |||
106 | /** |
||
107 | * @param InputInterface $input |
||
108 | * @param OutputInterface $output |
||
109 | * @return mixed |
||
110 | */ |
||
111 | 5 | private function confirmAdditionalAuthor(InputInterface $input, OutputInterface $output) |
|
119 | |||
120 | /** |
||
121 | * @param InputInterface $input |
||
122 | * @param OutputInterface $output |
||
123 | * @param Author $author |
||
124 | * @return mixed |
||
125 | */ |
||
126 | 4 | private function confirmAuthor(InputInterface $input, OutputInterface $output, Author $author) |
|
134 | |||
135 | /** |
||
136 | * @return string |
||
137 | */ |
||
138 | 5 | private function retrieveGitUser() |
|
146 | } |
||
147 |