RecommendationDeletionService
in package
Deletes recommendations through the workflow-owned mutation layer.
Table of Contents
Properties
- $approvalLifecycleService : RecommendationApprovalWorkflowLifecycleService
- $groupingService : RecommendationGroupingService
Methods
- __construct() : mixed
- delete() : array<string, mixed>
- Soft-delete a recommendation and restore grouped children when deleting a head.
Properties
$approvalLifecycleService
private
RecommendationApprovalWorkflowLifecycleService
$approvalLifecycleService
$groupingService
private
RecommendationGroupingService
$groupingService
Methods
__construct()
public
__construct([RecommendationGroupingService|null $groupingService = null ][, RecommendationApprovalWorkflowLifecycleService|null $approvalLifecycleService = null ]) : mixed
Parameters
- $groupingService : RecommendationGroupingService|null = null
-
Optional grouping service.
- $approvalLifecycleService : RecommendationApprovalWorkflowLifecycleService|null = null
-
Optional lifecycle service.
delete()
Soft-delete a recommendation and restore grouped children when deleting a head.
public
delete(RecommendationsTable $recommendationsTable, Recommendation $recommendation[, int|null $actorId = null ]) : array<string, mixed>
Parameters
- $recommendationsTable : RecommendationsTable
-
Recommendations table.
- $recommendation : Recommendation
-
Recommendation to delete.
- $actorId : int|null = null
-
Current user ID.