| Total Complexity | 2 |
| Total Lines | 25 |
| Duplicated Lines | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 24 | trait AggregateEventBehaviour |
||
| 25 | { |
||
| 26 | use EventBehaviour, AggregateBehaviour { |
||
| 27 | AggregateBehaviour::getIdentity as private; |
||
| 28 | AggregateBehaviour::getVersion as private; |
||
| 29 | } |
||
| 30 | |||
| 31 | /** |
||
| 32 | * Get aggregate id. |
||
| 33 | * |
||
| 34 | * @return Identity |
||
| 35 | */ |
||
| 36 | final public function getAggregateId(): Identity |
||
| 37 | { |
||
| 38 | return $this->identity; |
||
| 39 | } |
||
| 40 | |||
| 41 | /** |
||
| 42 | * Get aggregate version. |
||
| 43 | * |
||
| 44 | * @return AggregateVersion |
||
| 45 | */ |
||
| 46 | final public function getAggregateVersion(): AggregateVersion |
||
| 49 | } |
||
| 50 | } |
||
| 51 |