<?php

namespace App\Http\Resources;

use App\Classes\Modules\Companies\Services\FetchesCompanyServices;
use App\Classes\ValueObjects\Constants\BankAccountType;
use App\Classes\ValueObjects\Constants\BusinessType;
use App\Classes\ValueObjects\Constants\DocumentType;
use App\Classes\ValueObjects\Constants\SegmentConstants;
use App\Models\Currency;
use App\Models\SegmentConstant;
use Illuminate\Http\Resources\Json\JsonResource;

class StepResource extends JsonResource
{
    /**
     * Transform the resource into an array.
     *
     * @param  \Illuminate\Http\Request  $request
     * @return array
     */
    public function toArray($request)
    {
        return [
            'id' => $this->id,
            'appointee_id' => $this->appointee_id,
            'reference' => $this->reference,
            'primary' => (int) $this->primary,
            'sequence' => (double) $this->sequence,
            'status' =>(int) $this->status,
            'contract_status' =>(int) $this->contract_status,
            'complete_date' => $this->complete_date,
        ];
    }
}
