1 | <?php |
||
17 | class LibraryFactory { |
||
18 | |||
19 | /** |
||
20 | *@var Store |
||
21 | */ |
||
22 | private $store; |
||
23 | |||
24 | /** |
||
25 | * @since 1.0 |
||
26 | * |
||
27 | * @param Store $store |
||
28 | */ |
||
29 | 5 | public function __construct( Store $store ) { |
|
32 | |||
33 | /** |
||
34 | * @since 1.0 |
||
35 | * |
||
36 | * @param string|array $rawParameters |
||
37 | * |
||
38 | * @return QueryResult |
||
39 | */ |
||
40 | 1 | public function newQueryResultFrom( $rawParameters ) { |
|
59 | |||
60 | /** |
||
61 | * @since 1.0 |
||
62 | * |
||
63 | * @param array $arguments |
||
64 | * |
||
65 | * @return ParserParameterProcessor |
||
66 | */ |
||
67 | 1 | public function newParserParameterProcessorFrom( $arguments ) { |
|
70 | |||
71 | /** |
||
72 | * @since 1.0 |
||
73 | * |
||
74 | * @param Parser $parser |
||
75 | * |
||
76 | * @return SetParserFunction |
||
77 | */ |
||
78 | 1 | public function newSetParserFunction( Parser $parser ) { |
|
81 | |||
82 | /** |
||
83 | * @since 1.0 |
||
84 | * |
||
85 | * @param Parser $parser |
||
86 | * |
||
87 | * @return SubobjectParserFunction |
||
88 | */ |
||
89 | 1 | public function newSubobjectParserFunction( Parser $parser ) { |
|
92 | |||
93 | } |
||
94 |
If a method or function can return multiple different values and unless you are sure that you only can receive a single value in this context, we recommend to add an additional type check:
If this a common case that PHP Analyzer should handle natively, please let us know by opening an issue.