<?php

namespace App\Api\Http\Resources\Quarter;

use Illuminate\Http\Resources\Json\JsonResource;

class QuarterResource extends JsonResource
{

    public function toArray($request): array
    {
        return [
            'id' => (string)$this->id,
            'name' => (string)$this->name,
            'date_from' => (string)$this->date_from,
            'date_to' => (string)$this->date_to,
        ];
    }
}
