| 1 | <?php declare(strict_types = 1); |
||
| 13 | trait AbstractFinalTrait |
||
| 14 | { |
||
| 15 | /** @var bool Flag that method is abstract */ |
||
| 16 | protected $isAbstract = false; |
||
| 17 | |||
| 18 | /** @var bool Flag that method is final */ |
||
| 19 | protected $isFinal = false; |
||
| 20 | |||
| 21 | /** |
||
| 22 | * Set to be final. |
||
| 23 | * |
||
| 24 | * @return $this |
||
| 25 | * @throws \InvalidArgumentException |
||
| 26 | */ |
||
| 27 | public function defFinal() |
||
| 37 | |||
| 38 | /** |
||
| 39 | * Set to be abstract. |
||
| 40 | * |
||
| 41 | * @return $this |
||
| 42 | * @throws \InvalidArgumentException |
||
| 43 | */ |
||
| 44 | public function defAbstract() |
||
| 54 | } |
||
| 55 |