Total Lines | 27 |
Duplicated Lines | 0 % |
Changes | 0 |
1 | <?php |
||
19 | interface BBCodeModuleInterface{ |
||
20 | |||
21 | /** |
||
22 | * BBCodeModuleInterface constructor. |
||
23 | * |
||
24 | * @param \chillerlan\Settings\SettingsContainerInterface $options |
||
25 | * @param \Psr\SimpleCache\CacheInterface $cache |
||
26 | * @param \Psr\Log\LoggerInterface $logger |
||
27 | */ |
||
28 | public function __construct(SettingsContainerInterface $options, CacheInterface $cache, LoggerInterface $logger); |
||
29 | |||
30 | /** |
||
31 | * @return array |
||
32 | */ |
||
33 | public function getTags():array; |
||
34 | |||
35 | /** |
||
36 | * @return array |
||
37 | */ |
||
38 | public function getSingleTags():array; |
||
39 | |||
40 | /** |
||
41 | * @return array |
||
42 | */ |
||
43 | public function getNoparse():array; |
||
44 | |||
45 | } |
||
46 |
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.