| Total Complexity | 5 |
| Total Lines | 29 |
| Duplicated Lines | 0 % |
| Changes | 0 | ||
| 1 | <?php declare(strict_types=1); |
||
| 18 | final class Paragraph extends Entity |
||
| 19 | { |
||
| 20 | public static function getAttributeMap(): AttributeMap |
||
| 21 | { |
||
| 22 | return new AttributeMap([ |
||
| 23 | Attribute::define('id', IntValue::class), |
||
| 24 | Attribute::define('kicker', Text::class), |
||
| 25 | Attribute::define('content', Text::class) |
||
| 26 | ]); |
||
| 27 | } |
||
| 28 | |||
| 29 | public function getIdentity(): ValueObjectInterface |
||
| 30 | { |
||
| 31 | return $this->getId(); |
||
| 32 | } |
||
| 33 | |||
| 34 | public function getId(): IntValue |
||
| 35 | { |
||
| 36 | return $this->get('id') ?? IntValue::zero(); |
||
|
|
|||
| 37 | } |
||
| 38 | |||
| 39 | public function getKicker(): Text |
||
| 42 | } |
||
| 43 | |||
| 44 | public function getContent(): Text |
||
| 47 | } |
||
| 48 | } |
||
| 49 |