| 1 | <?php |
||
| 18 | trait HasDeprecation |
||
| 19 | { |
||
| 20 | /** |
||
| 21 | * @var string|null |
||
| 22 | */ |
||
| 23 | protected $deprecation; |
||
| 24 | |||
| 25 | /** |
||
| 26 | * @return bool |
||
| 27 | */ |
||
| 28 | public function isDeprecated(): bool |
||
| 32 | |||
| 33 | /** |
||
| 34 | * @param null|string $reason |
||
| 35 | */ |
||
| 36 | public function setDeprecationReason(?string $reason): void |
||
| 40 | |||
| 41 | /** |
||
| 42 | * @return string |
||
| 43 | */ |
||
| 44 | public function getDeprecationReason(): string |
||
| 48 | } |
||
| 49 |