1 | <?php |
||
10 | class MigrationService extends ServiceAbstract implements ServiceInterface |
||
11 | { |
||
12 | use CanGenerateFile; |
||
13 | |||
14 | protected $key = 'migration'; |
||
15 | |||
16 | public function getConsoleOutput() { |
||
19 | |||
20 | public function call() |
||
29 | |||
30 | protected function buildFileContent() |
||
36 | |||
37 | /** |
||
38 | * Replace migration fields in stub file. |
||
39 | * |
||
40 | * @return string |
||
|
|||
41 | */ |
||
42 | protected function replaceMigrationFields(): void |
||
46 | |||
47 | /** |
||
48 | * Generates the migration fields from schema |
||
49 | * |
||
50 | * @return string |
||
51 | */ |
||
52 | protected function generateMigrationFields(): string |
||
71 | } |
||
72 |
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.