| 1 | <?php |
||
| 12 | class MessageProvider |
||
| 13 | { |
||
| 14 | |||
| 15 | /** |
||
| 16 | * @var array |
||
| 17 | */ |
||
| 18 | protected $messages; |
||
| 19 | |||
| 20 | public function __construct(array $config) |
||
| 24 | |||
| 25 | /** |
||
| 26 | * Gets a message for a key. |
||
| 27 | * |
||
| 28 | * @param string $key |
||
| 29 | * @param array $params |
||
| 30 | * @return string |
||
| 31 | */ |
||
| 32 | public function getMessage($key, array $params) |
||
| 44 | |||
| 45 | /** |
||
| 46 | * Translates an array of AnalysisException instances to array of Issue |
||
| 47 | * |
||
| 48 | * @param AnalysisException[] $exceptions |
||
| 49 | * @return Issue[] |
||
| 50 | */ |
||
| 51 | public function translateExceptions(array $exceptions) |
||
| 64 | } |
||
| 65 |