| Conditions | 2 |
| Paths | 2 |
| Total Lines | 10 |
| Code Lines | 6 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 1 |
| 1 | <?php |
||
| 33 | public function __construct( EntityId $entityId, EntityId $targetId ) { |
||
| 34 | if ( $entityId->getEntityType() !== $targetId->getEntityType() ) { |
||
| 35 | throw new InvalidArgumentException( |
||
| 36 | '$entityId and $targetId must refer to the same kind of entity.' |
||
| 37 | ); |
||
| 38 | } |
||
| 39 | |||
| 40 | $this->entityId = $entityId; |
||
| 41 | $this->targetId = $targetId; |
||
| 42 | } |
||
| 43 | |||
| 84 |