Total Complexity | 5 |
Total Lines | 51 |
Duplicated Lines | 0 % |
Changes | 0 |
1 | <?php |
||
5 | trait DeprecationTrait |
||
6 | { |
||
7 | |||
8 | /** |
||
9 | * @var ?string |
||
10 | */ |
||
|
|||
11 | private $deprecationReason; |
||
12 | |||
13 | /** |
||
14 | * @var bool |
||
15 | */ |
||
16 | private $isDeprecated = false; |
||
17 | |||
18 | /** |
||
19 | * @return null|string |
||
20 | */ |
||
21 | public function getDeprecationReason(): ?string |
||
22 | { |
||
23 | return $this->deprecationReason; |
||
24 | } |
||
25 | |||
26 | /** |
||
27 | * @return bool |
||
28 | */ |
||
29 | public function isDeprecated(): bool |
||
32 | } |
||
33 | |||
34 | /** |
||
35 | * @param null|string $deprecationReason |
||
36 | * @return $this |
||
37 | */ |
||
38 | protected function setDeprecationReason(?string $deprecationReason) |
||
47 | } |
||
48 | |||
49 | /** |
||
50 | * @param bool $isDeprecated |
||
51 | * @throws \TypeError |
||
52 | */ |
||
53 | public function setIsDeprecated(bool $isDeprecated): void |
||
56 | } |
||
57 | } |
||
58 |