<?php

namespace App\Http\Resources;

class TeamCapacityResource extends BaseResource
{
    public function toArray($request): array
    {
        return [
            'month' => $this->resource['month'] ?? null,
            'person_days' => $this->resource['person_days'] ?? null,
            'hours' => $this->resource['hours'] ?? null,
            'members' => $this->resource['members'] ?? [],
        ];
    }
}
