These results are based on our legacy PHP analysis, consider migrating to our new PHP analysis engine instead. Learn more
1 | <?php |
||
2 | |||
3 | namespace Kunstmaan\PagePartBundle\Helper; |
||
4 | |||
5 | use Kunstmaan\PagePartBundle\PagePartAdmin\PagePartAdminConfiguratorInterface; |
||
6 | |||
7 | /** |
||
8 | * An interface for something that contains pageparts |
||
9 | */ |
||
10 | interface HasPagePartsInterface |
||
11 | { |
||
12 | public function getId(); |
||
0 ignored issues
–
show
|
|||
13 | |||
14 | /** |
||
15 | * @return PagePartAdminConfiguratorInterface[] |
||
16 | */ |
||
17 | public function getPagePartAdminConfigurations(); |
||
18 | } |
||
19 |
For interface and abstract methods, it is impossible to infer the return type from the immediate code. In these cases, it is generally advisible to explicitly annotate these methods with a
@return
doc comment to communicate to implementors of these methods what they are expected to return.