1 | <?php |
||
10 | class MigrationService extends ServiceAbstract implements ServiceInterface |
||
11 | { |
||
12 | use CanGenerateFile; |
||
13 | |||
14 | protected $key = 'migration'; |
||
15 | |||
16 | public function getConsoleOutput() |
||
20 | |||
21 | public function call() |
||
30 | |||
31 | protected function buildFileContent() |
||
37 | |||
38 | /** |
||
39 | * Replace migration fields in stub file. |
||
40 | * |
||
41 | * @return string |
||
|
|||
42 | */ |
||
43 | protected function replaceMigrationFields(): void |
||
47 | |||
48 | /** |
||
49 | * Generates the migration fields from schema |
||
50 | * |
||
51 | * @return string |
||
52 | */ |
||
53 | protected function generateMigrationFields(): string |
||
72 | } |
||
73 |
This check compares the return type specified in the
@return
annotation of a function or method doc comment with the types returned by the function and raises an issue if they mismatch.