/**
* @param object $entity
*
* @return Backlog|null
*/
private function getDeleteBacklog($entity) { switch (true
) { case $entity instanceof ProductModel:
return new Backlog(self::EVENT_ARTICLE_DELETED,
['id' =>
$entity->
getId()]);
case $entity instanceof VariantModel:
return new Backlog(self::EVENT_VARIANT_DELETED,
['number' =>
$entity->
getNumber()]);
case $entity instanceof PriceModel:
return new Backlog(self::EVENT_PRICE_DELETED,
['number' =>
$entity->
getDetail()->
getNumber()]);
case $entity instanceof VoteModel:
return new Backlog(self::EVENT_VOTE_DELETED,
['articleId' =>
$entity->
getArticle()->
getId()]);
case $entity instanceof SupplierModel:
return new Backlog(self::EVENT_SUPPLIER_DELETED,
['id' =>
$entity->
getId()]);
case $entity instanceof UnitModel:
return new Backlog(self::EVENT_UNIT_DELETED,
['id' =>
$entity->
getId()]);
case $entity instanceof TaxModel: