1 | <?php declare(strict_types=1); |
||
13 | * Abstract Part |
||
14 | * |
||
15 | * Keeps track if the model has an abstract modifier or not |
||
16 | * |
||
17 | * @author Thomas Gossmann |
||
18 | */ |
||
19 | trait AbstractPart { |
||
20 | |||
21 | /** @var bool */ |
||
22 | private bool $abstract = false; |
||
|
|||
23 | 23 | ||
24 | 23 | /** |
|
25 | * Returns whether this is abstract |
||
26 | * |
||
27 | * @return bool `true` for abstract and `false` if not |
||
28 | */ |
||
29 | public function isAbstract(): bool { |
||
30 | return $this->abstract; |
||
31 | } |
||
32 | |||
33 | 18 | /** |
|
34 | 18 | * Sets this to abstract |
|
35 | * |
||
36 | 18 | * @param bool $abstract `true` for abstract and `false` if not |
|
37 | * |
||
38 | * @return $this |
||
39 | */ |
||
46 |