| 1 | <?php |
||
| 17 | class PlatformFactory { |
||
| 18 | /** |
||
| 19 | * Filesystem. |
||
| 20 | * |
||
| 21 | * @var \Symfony\Component\Filesystem\Filesystem |
||
| 22 | */ |
||
| 23 | protected $filesystem; |
||
| 24 | |||
| 25 | /** |
||
| 26 | * Initialiser. |
||
| 27 | * |
||
| 28 | * @param \Symfony\Component\Filesystem\Filesystem $filesystem |
||
| 29 | */ |
||
| 30 | public function __construct(Filesystem $filesystem) { |
||
| 33 | |||
| 34 | /** |
||
| 35 | * Get the platform with the specified name. |
||
| 36 | * |
||
| 37 | * @param string $platformName The name of the platform (retrieved from |
||
| 38 | * PHP_OS). |
||
| 39 | * |
||
| 40 | * @return \ComponentManager\Platform\Platform |
||
|
|
|||
| 41 | * |
||
| 42 | * @throws \ComponentManager\Exception\PlatformException |
||
| 43 | */ |
||
| 44 | public function getPlatform($platformName) { |
||
| 63 | } |
||
| 64 |
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.