| Total Lines | 23 |
| Duplicated Lines | 0 % |
| Changes | 7 | ||
| Bugs | 1 | Features | 4 |
| 1 | <?php |
||
| 26 | interface AssetsInterface |
||
| 27 | { |
||
| 28 | /** |
||
| 29 | * Initialize asset |
||
| 30 | */ |
||
| 31 | public function init(); |
||
| 32 | |||
| 33 | /** |
||
| 34 | * Set ID attribute of the asset |
||
| 35 | * |
||
| 36 | * @param string $id |
||
| 37 | * @return void |
||
| 38 | */ |
||
| 39 | public function id(string $id = '0'); |
||
| 40 | |||
| 41 | /** |
||
| 42 | * Set Assets src attribute |
||
| 43 | * |
||
| 44 | * @param null|string $src |
||
| 45 | * @return void |
||
| 46 | */ |
||
| 47 | public function src(string $src = null); |
||
| 48 | } |
||
| 49 |
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
@returndoc comment to communicate to implementors of these methods what they are expected to return.