| Conditions | 2 |
| Paths | 1 |
| Total Lines | 12 |
| Code Lines | 7 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 0 |
| CRAP Score | 6 |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 33 | public function getInterface(): string |
||
| 34 | { |
||
| 35 | $message = $this->message ?? \sprintf( |
||
| 36 | 'Using `%s` outside of the `%s` scope is deprecated and will be impossible in version %s.', |
||
| 37 | $this->interface, |
||
| 38 | $this->scope instanceof \BackedEnum ? $this->scope->value : $this->scope, |
||
| 39 | $this->version, |
||
| 40 | ); |
||
| 41 | |||
| 42 | @\trigger_error($message, \E_USER_DEPRECATED); |
||
| 43 | |||
| 44 | return parent::getInterface(); |
||
| 45 | } |
||
| 47 |