1 | <?php namespace Limoncello\Core\Routing\Traits; |
||
28 | trait HasRequestFactoryTrait |
||
29 | { |
||
30 | /** |
||
31 | * @var callable|false|null |
||
32 | */ |
||
33 | private $requestFactory = false; |
||
34 | |||
35 | /** |
||
36 | * @param callable|null $requestFactory |
||
37 | * |
||
38 | * @return $this |
||
39 | */ |
||
40 | 18 | public function setRequestFactory(callable $requestFactory = null) |
|
49 | |||
50 | /** |
||
51 | * @return bool |
||
52 | */ |
||
53 | 12 | protected function isRequestFactorySet() |
|
57 | |||
58 | /** |
||
59 | * @return callable |
||
|
|||
60 | * |
||
61 | * @SuppressWarnings(PHPMD.StaticAccess) |
||
62 | */ |
||
63 | 5 | protected function getDefaultRequestFactory() |
|
67 | } |
||
68 |
This check looks for the generic type
array
as a return type and suggests a more specific type. This type is inferred from the actual code.