| Conditions | 2 |
| Paths | 2 |
| Total Lines | 9 |
| Code Lines | 6 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 17 | public function computeName(string $aggregateClass, $aggregateId = null) : StreamName |
||
| 18 | { |
||
| 19 | if (empty($aggregateId)) { |
||
| 20 | throw new NamingStrategyException('OneStreamPerAggregateStrategy requires not blank aggregate id'); |
||
| 21 | } |
||
| 22 | return StreamName::fromString(sprintf( |
||
| 23 | '%s.%s', |
||
| 24 | $aggregateClass, |
||
| 25 | $aggregateId |
||
| 26 | )); |
||
| 29 |