| 1 | <?php declare(strict_types=1); |
||
| 5 | trait HasPropertiesTrait |
||
| 6 | { |
||
| 7 | /** |
||
| 8 | * @var Property[] |
||
| 9 | */ |
||
| 10 | protected $properties = []; |
||
| 11 | |||
| 12 | |||
| 13 | /** |
||
| 14 | * @return Property[] |
||
| 15 | */ |
||
| 16 | 14 | public function getProperties(): array |
|
| 20 | |||
| 21 | /** |
||
| 22 | * @param string $name |
||
| 23 | * @param mixed $value |
||
| 24 | * @return self |
||
| 25 | */ |
||
| 26 | 4 | public function addProperty(string $name, $value): self |
|
| 31 | |||
| 32 | /** |
||
| 33 | * @return self |
||
| 34 | */ |
||
| 35 | 1 | public function removeProperties(): self |
|
| 40 | } |
||
| 41 |