| Total Complexity | 2 |
| Total Lines | 18 |
| Duplicated Lines | 0 % |
| Coverage | 100% |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 9 | abstract class Modifier implements ModifierInterface |
||
| 10 | { |
||
| 11 | public const PRIORITY_HIGH = 10000; |
||
| 12 | public const PRIORITY_NORMAL = 0; |
||
| 13 | public const PRIORITY_LOW = -10000; |
||
| 14 | |||
| 15 | protected int $priority = self::PRIORITY_NORMAL; |
||
| 16 | |||
| 17 | 3 | public function getPriority(): int |
|
| 18 | { |
||
| 19 | 3 | return $this->priority; |
|
| 20 | } |
||
| 21 | |||
| 22 | 3 | public function withPriority(int $priority): self |
|
| 27 | } |
||
| 28 | } |
||
| 29 |