@@ -99,12 +99,18 @@ discard block |
||
| 99 | 99 | } |
| 100 | 100 | |
| 101 | 101 | |
| 102 | + /** |
|
| 103 | + * @param integer $code |
|
| 104 | + */ |
|
| 102 | 105 | protected function terminate($code) |
| 103 | 106 | { |
| 104 | 107 | throw new TerminateException(NULL, $code); |
| 105 | 108 | } |
| 106 | 109 | |
| 107 | 110 | |
| 111 | + /** |
|
| 112 | + * @param string $workingDir |
|
| 113 | + */ |
|
| 108 | 114 | protected function detectBootstrapFilename($workingDir) |
| 109 | 115 | { |
| 110 | 116 | return $workingDir . DIRECTORY_SEPARATOR . 'bootstrap.php'; |
@@ -112,6 +118,8 @@ discard block |
||
| 112 | 118 | |
| 113 | 119 | |
| 114 | 120 | /** |
| 121 | + * @param string $workingDir |
|
| 122 | + * @param string $configFile |
|
| 115 | 123 | * @return Container |
| 116 | 124 | */ |
| 117 | 125 | protected function createContainer($workingDir, $configFile, Container $bootstrapContainer = NULL) |
@@ -165,6 +173,9 @@ discard block |
||
| 165 | 173 | } |
| 166 | 174 | |
| 167 | 175 | |
| 176 | + /** |
|
| 177 | + * @param IBuild $class |
|
| 178 | + */ |
|
| 168 | 179 | protected function getAutowiredProperties($class) |
| 169 | 180 | { |
| 170 | 181 | $return = []; |
@@ -180,6 +191,10 @@ discard block |
||
| 180 | 191 | } |
| 181 | 192 | |
| 182 | 193 | |
| 194 | + /** |
|
| 195 | + * @param string $color |
|
| 196 | + * @param string $backgroundColor |
|
| 197 | + */ |
|
| 183 | 198 | protected function log($message, $color = NULL, $backgroundColor = NULL) |
| 184 | 199 | { |
| 185 | 200 | echo Cli::getColoredString($message . PHP_EOL, $color, $backgroundColor); |
@@ -62,7 +62,6 @@ discard block |
||
| 62 | 62 | |
| 63 | 63 | /** |
| 64 | 64 | * Sets path to working directory |
| 65 | - * @param string $workingTree |
|
| 66 | 65 | */ |
| 67 | 66 | public function setWorkingDirectory($workingDirectory) |
| 68 | 67 | { |
@@ -100,7 +99,7 @@ discard block |
||
| 100 | 99 | |
| 101 | 100 | /** |
| 102 | 101 | * Sets git command (to be executed later) |
| 103 | - * @param mixed $command |
|
| 102 | + * @param string $command |
|
| 104 | 103 | */ |
| 105 | 104 | public function setCommand($command) |
| 106 | 105 | { |
@@ -139,6 +138,9 @@ discard block |
||
| 139 | 138 | } |
| 140 | 139 | |
| 141 | 140 | |
| 141 | + /** |
|
| 142 | + * @param string $command |
|
| 143 | + */ |
|
| 142 | 144 | private function exec($command) |
| 143 | 145 | { |
| 144 | 146 | $exec = new Exec(); |