1 | <?php |
||
13 | trait FinalPart { |
||
14 | |||
15 | /** @var bool */ |
||
16 | private $final = false; |
||
17 | |||
18 | /** |
||
19 | * Returns whether this is final |
||
20 | * |
||
21 | * @return bool `true` for final and `false` if not |
||
22 | */ |
||
23 | 23 | public function isFinal(): bool { |
|
26 | |||
27 | /** |
||
28 | * Sets this final |
||
29 | * |
||
30 | * @param bool $final `true` for final and `false` if not |
||
31 | * @return $this |
||
32 | */ |
||
33 | 17 | public function setFinal(bool $final) { |
|
38 | } |
||
39 |