*/ class ItemMergeEvent extends EntityEvent implements Cancellable{ use CancellableTrait; public function __construct( ItemEntity $entity, protected ItemEntity $target ){ $this->entity = $entity; } /** * Returns the merge destination. */ public function getTarget() : ItemEntity{ return $this->target; } }