assignmentProcessor = $assignmentProcessor; } public function run(Data $data): void { $this->assignmentProcessor->process( AssignmentProcessorData::create() ->withAssignerUserId($data->get('assignerUserId')) ->withEntityId($data->get('entityId')) ->withEntityType($data->get('entityType')) ->withUserId($data->get('userId')) ); } }