| 1 | <?php |
||
| 16 | class PlatformFactory { |
||
| 17 | /** |
||
| 18 | * Get the platform with the specified name. |
||
| 19 | * |
||
| 20 | * @param string $platformName The name of the platform (retrieved from |
||
| 21 | * PHP_OS). |
||
| 22 | * |
||
| 23 | * @return \ComponentManager\Platform\Platform |
||
|
|
|||
| 24 | * |
||
| 25 | * @throws \ComponentManager\Exception\PlatformException |
||
| 26 | */ |
||
| 27 | public function getPlatform($platformName) { |
||
| 46 | } |
||
| 47 |
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.