| 1 | <?php |
||
| 11 | abstract class AbstractModel { |
||
| 12 | |||
| 13 | /** @var string */ |
||
| 14 | protected $description; |
||
| 15 | |||
| 16 | /** |
||
| 17 | * Returns this description |
||
| 18 | * |
||
| 19 | * @return string |
||
| 20 | */ |
||
| 21 | 23 | public function getDescription(): ?string { |
|
| 24 | |||
| 25 | /** |
||
| 26 | * Sets the description, which will also be used when generating a docblock |
||
| 27 | * |
||
| 28 | * @param string|array $description |
||
| 29 | * @return $this |
||
| 30 | */ |
||
| 31 | 14 | public function setDescription($description) { |
|
| 38 | |||
| 39 | } |
||
| 40 |