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