<?php

namespace App\Http\Resources\Semesters;

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

class SemesterRangeResource extends JsonResource
{
    public function toArray(Request $request): array
    {
        return [
            'start_date' => $this->resource['start_date'] ?? null,
            'end_date' => $this->resource['end_date'] ?? null,
        ];
    }
}
