| Total Complexity | 5 |
| Total Lines | 45 |
| Duplicated Lines | 0 % |
| Coverage | 100% |
| Changes | 0 | ||
| 1 | <?php |
||
| 16 | class ConstantChecker extends AbstractChecker |
||
| 17 | { |
||
| 18 | |||
| 19 | const TYPE_CONSTANT_DELETED = 'constant.deleted'; |
||
| 20 | |||
| 21 | /** |
||
| 22 | * Constructor. |
||
| 23 | * |
||
| 24 | * @param CacheProvider $cache Cache provider. |
||
| 25 | */ |
||
| 26 | 3 | public function __construct(CacheProvider $cache) |
|
| 27 | { |
||
| 28 | 3 | parent::__construct($cache); |
|
| 29 | |||
| 30 | 3 | $this->typeSorting = array( |
|
| 31 | 3 | self::TYPE_CONSTANT_DELETED => 1, |
|
| 32 | ); |
||
| 33 | 3 | } |
|
| 34 | |||
| 35 | /** |
||
| 36 | * Returns backwards compatibility checker name. |
||
| 37 | * |
||
| 38 | * @return string |
||
| 39 | */ |
||
| 40 | 1 | public function getName() |
|
| 41 | { |
||
| 42 | 1 | return 'constant'; |
|
| 43 | } |
||
| 44 | |||
| 45 | /** |
||
| 46 | * Collects backwards compatibility violations. |
||
| 47 | * |
||
| 48 | * @return void |
||
| 49 | */ |
||
| 50 | 2 | protected function doCheck() |
|
| 61 | } |
||
| 62 | } |
||
| 63 | 2 | } |
|
| 66 |