trip-planner/backend/app/Domain/PlannedItem/Actions/DeletePlannedItemAction.php
myrmidex 935162ea70 Implement timeline scheduling feature with hour-based calendar slots
- Add CalendarSlotService methods for slot order calculation
  - Update PlannedItemController to create slots from datetime
  - Update CalendarSlotController with proper eager loading
  - Create timeline UI components (TripTimeline, DaySection, HourRow, ScheduleItemModal)
  - Add comprehensive PHPUnit tests (PlannedItemTest, CalendarSlotServiceTest)
  - Add comprehensive Selenium E2E tests (timeline-scheduling.test.js)
  - Update PlannablesList to support onItemsChange callback
2025-10-07 22:54:09 +02:00

19 lines
328 B
PHP

<?php
namespace App\Domain\PlannedItem\Actions;
use App\Models\PlannedItem;
class DeletePlannedItemAction
{
/**
* Delete a planned item
*
* @param PlannedItem $plannedItem
* @return void
*/
public function execute(PlannedItem $plannedItem): void
{
$plannedItem->delete();
}
}