| Total Complexity | 6 |
| Total Lines | 35 |
| Duplicated Lines | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 7 | trait Deprecation |
||
| 8 | { |
||
| 9 | protected static function deprecationNamespace(string $message = null, ...$args): void |
||
| 10 | { |
||
| 11 | static::deprecation( |
||
| 12 | 'The namespace will be changed from %s to \Helldar\Support\Facades\Helpers\%s.', |
||
| 13 | static::getDeprecationClassBasename(), |
||
| 14 | static::getDeprecationClassBasename() |
||
| 15 | ); |
||
| 16 | |||
| 17 | if (! empty($message)) { |
||
| 18 | static::deprecation($message, ...$args); |
||
| 19 | } |
||
| 20 | } |
||
| 21 | |||
| 22 | protected static function deprecatedClass(): void |
||
| 23 | { |
||
| 24 | static::deprecation('The %s class has been deprecated and will be removed.', static::getDeprecationNamespace()); |
||
| 25 | } |
||
| 26 | |||
| 27 | protected static function getDeprecationNamespace(): string |
||
| 30 | } |
||
| 31 | |||
| 32 | protected static function getDeprecationClassBasename(): string |
||
| 36 | ); |
||
| 37 | } |
||
| 38 | |||
| 39 | protected static function deprecation(string $message, ...$args): void |
||
| 44 |