<?php

namespace Functional\Programs\Http\Resources;

use Illuminate\Http\Request;
use Illuminate\Http\Resources\Json\JsonResource;

/**
 * Une case du planning d'un programme (semaine/jour, routine optionnelle).
 */
class ProgramSlotResource extends JsonResource
{
    public function toArray(Request $request): array
    {
        return [
            'week' => $this->week,
            'weekday' => $this->weekday,
            'routine_id' => $this->routine_id,
            'label' => $this->label,
        ];
    }
}
