| 1 | <?php |
||
| 13 | abstract class AbstractSetupCommand extends AbstractMagentoCommand |
||
| 14 | { |
||
| 15 | /** |
||
| 16 | * @var ModuleListInterface |
||
| 17 | */ |
||
| 18 | protected $moduleList; |
||
| 19 | |||
| 20 | /** |
||
| 21 | * @var ResourceInterface |
||
| 22 | */ |
||
| 23 | protected $resource; |
||
| 24 | |||
| 25 | /** |
||
| 26 | * Determine if a module exists. If it does, return the actual module name (not lowercased). |
||
| 27 | * @param string $requestedModuleName |
||
| 28 | * @return string |
||
|
|
|||
| 29 | * @throws \InvalidArgumentException When the module doesn't exist |
||
| 30 | */ |
||
| 31 | public function getMagentoModuleName($requestedModuleName) |
||
| 43 | |||
| 44 | /** |
||
| 45 | * @return ModuleListInterface |
||
| 46 | */ |
||
| 47 | public function getMagentoModuleList() |
||
| 54 | |||
| 55 | /** |
||
| 56 | * @return ResourceInterface |
||
| 57 | */ |
||
| 58 | public function getMagentoModuleResource() |
||
| 65 | } |
||
| 66 |
This check compares the return type specified in the
@returnannotation of a function or method doc comment with the types returned by the function and raises an issue if they mismatch.