| Total Complexity | 3 |
| Total Lines | 20 |
| Duplicated Lines | 0 % |
| Coverage | 100% |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 5 | trait Deprecation |
||
| 6 | { |
||
| 7 | 6 | protected static function deprecatedMethod(string $old_method, string $new_class, string $new_method): void |
|
| 8 | { |
||
| 9 | 6 | $namespace = static::getDeprecatedNamespace(); |
|
| 10 | |||
| 11 | 6 | static::deprecated( |
|
| 12 | 6 | 'The %s::%s() method has been deprecated and will be removed in version 3.0, use %s::%s() instead.', |
|
| 13 | $namespace, $old_method, $new_class, $new_method |
||
| 14 | ); |
||
| 15 | 6 | } |
|
| 16 | |||
| 17 | 6 | protected static function getDeprecatedNamespace(): string |
|
| 20 | } |
||
| 21 | |||
| 22 | 6 | protected static function deprecated(string $message, ...$args): void |
|
| 25 | 6 | } |
|
| 26 | } |
||
| 27 |