turnaev /
monitor-bundle
| 1 | <?php |
||
| 2 | |||
| 3 | /** |
||
| 4 | * This file is part of the `tvi/monitor-bundle` project. |
||
| 5 | * |
||
| 6 | * (c) https://github.com/turnaev/monitor-bundle/graphs/contributors |
||
| 7 | * |
||
| 8 | * For the full copyright and license information, please view the LICENSE.md |
||
| 9 | * file that was distributed with this source code. |
||
| 10 | */ |
||
|
0 ignored issues
–
show
Coding Style
introduced
by
Loading history...
|
|||
| 11 | |||
| 12 | namespace Tvi\MonitorBundle\Check; |
||
| 13 | |||
| 14 | use JMS\Serializer\Annotation as JMS; |
||
| 15 | |||
| 16 | /** |
||
|
0 ignored issues
–
show
|
|||
| 17 | * @JMS\ExclusionPolicy("all") |
||
| 18 | * @JMS\AccessorOrder("custom", custom = { "id", "label", "group", "descr", "importance", "tags"}) |
||
| 19 | * |
||
| 20 | * @author Vladimir Turnaev <[email protected]> |
||
| 21 | */ |
||
|
0 ignored issues
–
show
|
|||
| 22 | abstract class CheckAbstract extends \ZendDiagnostics\Check\AbstractCheck implements CheckInterface |
||
| 23 | { |
||
| 24 | use CheckTrait; |
||
| 25 | |||
| 26 | const IMPORTANCE_EMERGENCY = 'EMERGENCY'; |
||
| 27 | const IMPORTANCE_WARNING = 'WARNING'; |
||
| 28 | const IMPORTANCE_NOTE = 'NOTE'; |
||
| 29 | const IMPORTANCE_INFO = 'INFO'; |
||
| 30 | |||
| 31 | /** |
||
|
0 ignored issues
–
show
|
|||
| 32 | * @return string[] |
||
| 33 | */ |
||
| 34 | 57 | public static function getImportances(): array |
|
| 35 | { |
||
| 36 | return [ |
||
| 37 | 57 | self::IMPORTANCE_EMERGENCY => self::IMPORTANCE_EMERGENCY, |
|
| 38 | 57 | self::IMPORTANCE_WARNING => self::IMPORTANCE_WARNING, |
|
| 39 | 57 | self::IMPORTANCE_NOTE => self::IMPORTANCE_NOTE, |
|
| 40 | 57 | self::IMPORTANCE_INFO => self::IMPORTANCE_INFO, |
|
| 41 | ]; |
||
| 42 | } |
||
| 43 | } |
||
| 44 |