@@ -22,7 +22,7 @@ discard block |
||
22 | 22 | /** |
23 | 23 | * Replace and store the Stub. |
24 | 24 | * |
25 | - * @return string |
|
25 | + * @return RegisterModuleCompiler |
|
26 | 26 | */ |
27 | 27 | public function replaceAndStore() |
28 | 28 | { |
@@ -35,7 +35,7 @@ discard block |
||
35 | 35 | * Get output filename |
36 | 36 | * |
37 | 37 | * |
38 | - * @return $this |
|
38 | + * @return string |
|
39 | 39 | */ |
40 | 40 | protected function getOutputFilename() |
41 | 41 | { |
@@ -25,7 +25,7 @@ discard block |
||
25 | 25 | /** |
26 | 26 | * Replace and store the Stub. |
27 | 27 | * |
28 | - * @return string |
|
28 | + * @return RegisterTemplateCompiler |
|
29 | 29 | */ |
30 | 30 | public function replaceAndStore() |
31 | 31 | { |
@@ -54,7 +54,7 @@ discard block |
||
54 | 54 | /** |
55 | 55 | * get search conditions |
56 | 56 | * |
57 | - * @return $this |
|
57 | + * @return string |
|
58 | 58 | */ |
59 | 59 | public function getInputFields(){ |
60 | 60 | |
@@ -128,7 +128,7 @@ discard block |
||
128 | 128 | * @param string $field |
129 | 129 | * @param string $fieldStub |
130 | 130 | * |
131 | - * @return $this |
|
131 | + * @return string |
|
132 | 132 | */ |
133 | 133 | protected function replaceFieldInput($field, $fieldStub){ |
134 | 134 | $fieldStub = $this->replaceFieldStrings($field, $fieldStub) ; |
@@ -143,7 +143,7 @@ discard block |
||
143 | 143 | * @param string $field |
144 | 144 | * @param string $fieldStub |
145 | 145 | * |
146 | - * @return $this |
|
146 | + * @return string |
|
147 | 147 | */ |
148 | 148 | protected function replaceFieldValidations($field, $fieldStub){ |
149 | 149 | $fieldStub = $this->replaceFieldStrings($field, $fieldStub) ; |
@@ -202,7 +202,7 @@ discard block |
||
202 | 202 | * Get output filename |
203 | 203 | * |
204 | 204 | * |
205 | - * @return $this |
|
205 | + * @return string |
|
206 | 206 | */ |
207 | 207 | protected function getOutputFilename() |
208 | 208 | { |
@@ -22,7 +22,7 @@ discard block |
||
22 | 22 | /** |
23 | 23 | * Replace and store the Stub. |
24 | 24 | * |
25 | - * @return string |
|
25 | + * @return ResourceCompiler |
|
26 | 26 | */ |
27 | 27 | public function replaceAndStore() |
28 | 28 | { |
@@ -33,7 +33,7 @@ discard block |
||
33 | 33 | * Get output filename |
34 | 34 | * |
35 | 35 | * |
36 | - * @return $this |
|
36 | + * @return string |
|
37 | 37 | */ |
38 | 38 | protected function getOutputFilename() |
39 | 39 | { |
@@ -25,7 +25,7 @@ discard block |
||
25 | 25 | /** |
26 | 26 | * Replace and store the Stub. |
27 | 27 | * |
28 | - * @return string |
|
28 | + * @return TranslateCompiler |
|
29 | 29 | */ |
30 | 30 | public function replaceAndStore() |
31 | 31 | { |
@@ -71,7 +71,7 @@ discard block |
||
71 | 71 | * Get output filename |
72 | 72 | * |
73 | 73 | * |
74 | - * @return $this |
|
74 | + * @return string |
|
75 | 75 | */ |
76 | 76 | protected function getOutputFilename() |
77 | 77 | { |
@@ -13,6 +13,9 @@ discard block |
||
13 | 13 | protected $cachePrefix = 'controller_'; |
14 | 14 | protected $stubFilename = 'Controller/Controller.php' ; |
15 | 15 | |
16 | + /** |
|
17 | + * @param string $stubName |
|
18 | + */ |
|
16 | 19 | public function __construct($scaffolderConfig, $modelData = null, $stubName = null) |
17 | 20 | { |
18 | 21 | if ($stubName) |
@@ -24,7 +27,7 @@ discard block |
||
24 | 27 | /** |
25 | 28 | * Replace and store the Stub. |
26 | 29 | * |
27 | - * @return string |
|
30 | + * @return ControllerCompiler |
|
28 | 31 | */ |
29 | 32 | public function replaceAndStore() |
30 | 33 | { |
@@ -49,7 +52,7 @@ discard block |
||
49 | 52 | * Get output filename |
50 | 53 | * |
51 | 54 | * |
52 | - * @return $this |
|
55 | + * @return string |
|
53 | 56 | */ |
54 | 57 | protected function getOutputFilename() |
55 | 58 | { |
@@ -474,6 +477,10 @@ discard block |
||
474 | 477 | * @return $this |
475 | 478 | */ |
476 | 479 | private $conditionsStub = []; |
480 | + |
|
481 | + /** |
|
482 | + * @return string |
|
483 | + */ |
|
477 | 484 | private function getConditionStubByField($field){ |
478 | 485 | |
479 | 486 | if($field->index == 'primary'){ |
@@ -27,7 +27,7 @@ discard block |
||
27 | 27 | /** |
28 | 28 | * Replace and store the Stub. |
29 | 29 | * |
30 | - * @return string |
|
30 | + * @return MigrationCompiler |
|
31 | 31 | */ |
32 | 32 | public function replaceAndStore() |
33 | 33 | { |
@@ -41,7 +41,7 @@ discard block |
||
41 | 41 | * Get output filename |
42 | 42 | * |
43 | 43 | * |
44 | - * @return $this |
|
44 | + * @return string |
|
45 | 45 | */ |
46 | 46 | protected function getOutputFilename() |
47 | 47 | { |
@@ -14,6 +14,9 @@ discard block |
||
14 | 14 | protected $cachePrefix = 'model_'; |
15 | 15 | protected $stubFilename = 'Model/Model.php' ; |
16 | 16 | |
17 | + /** |
|
18 | + * @param string $stubName |
|
19 | + */ |
|
17 | 20 | public function __construct($scaffolderConfig, $modelData = null, $stubName = null) |
18 | 21 | { |
19 | 22 | if ($stubName) |
@@ -25,7 +28,7 @@ discard block |
||
25 | 28 | /** |
26 | 29 | * Replace and store the Stub. |
27 | 30 | * |
28 | - * @return string |
|
31 | + * @return ModelCompiler |
|
29 | 32 | */ |
30 | 33 | public function replaceAndStore() |
31 | 34 | { |
@@ -54,7 +57,7 @@ discard block |
||
54 | 57 | * Get output filename |
55 | 58 | * |
56 | 59 | * |
57 | - * @return $this |
|
60 | + * @return string |
|
58 | 61 | */ |
59 | 62 | protected function getOutputFilename() |
60 | 63 | { |
@@ -528,6 +531,10 @@ discard block |
||
528 | 531 | * @return $this |
529 | 532 | */ |
530 | 533 | private $conditionsStub = []; |
534 | + |
|
535 | + /** |
|
536 | + * @return string |
|
537 | + */ |
|
531 | 538 | private function getConditionStubByField($field){ |
532 | 539 | |
533 | 540 | if($field->index == 'primary'){ |
@@ -45,7 +45,7 @@ discard block |
||
45 | 45 | * Compiles a group of routes. |
46 | 46 | * |
47 | 47 | * @param $hash |
48 | - * @param null $extra |
|
48 | + * @param string $compiledRoutes |
|
49 | 49 | * |
50 | 50 | * @return mixed |
51 | 51 | */ |
@@ -64,7 +64,7 @@ discard block |
||
64 | 64 | * Get output filename |
65 | 65 | * |
66 | 66 | * |
67 | - * @return $this |
|
67 | + * @return string |
|
68 | 68 | */ |
69 | 69 | protected function getOutputFilename() |
70 | 70 | { |
@@ -68,7 +68,7 @@ |
||
68 | 68 | /** |
69 | 69 | * Get the services provided by the provider. |
70 | 70 | * |
71 | - * @return array |
|
71 | + * @return string[] |
|
72 | 72 | */ |
73 | 73 | public function provides() |
74 | 74 | { |