| Total Lines | 14 |
| Duplicated Lines | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 18 | interface FlashMessageProviderInterface |
||
| 19 | { |
||
| 20 | const TYPE_SUCCESS = 'success'; |
||
| 21 | const TYPE_ERROR = 'error'; |
||
| 22 | |||
| 23 | /** |
||
| 24 | * Adds a flash message we will display to the user. |
||
| 25 | * |
||
| 26 | * @param string $type One of the class constants type |
||
| 27 | * @param string $translationKey A translation string |
||
| 28 | * @param array $parameters Optional parameters for the translation of the string. |
||
| 29 | */ |
||
| 30 | public function addFlash($type, $translationKey, $parameters = []); |
||
| 31 | } |
||
| 32 |
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.