Total Lines | 14 |
Duplicated Lines | 0 % |
Changes | 2 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
13 | interface EventInterface |
||
14 | { |
||
15 | /** |
||
16 | * @param mixed $aggregateRootId |
||
17 | * |
||
18 | * @throws RuntimeException When setting an aggregate id where one already exists. |
||
19 | */ |
||
20 | public function setAggregateRootId($aggregateRootId); |
||
21 | |||
22 | /** |
||
23 | * @return mixed |
||
24 | */ |
||
25 | public function getAggregateRootId(); |
||
26 | } |
||
27 |
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.