Skip to content

Open-source event management and ticket selling platform — perfect for concerts, conferences, and everything in between 🎟️ If you find this project helpful, please consider giving us a star ⭐️

714 B
Raw Blame
<?php

namespace HiEvents\Resources\CheckInList;

use HiEvents\DomainObjects\AttendeeCheckInDomainObject;
use Illuminate\Http\Resources\Json\JsonResource;

/**
 * @mixin AttendeeCheckInDomainObject
 */
class AttendeeCheckInPublicResource extends JsonResource
{
    public function toArray($request): array
    {
        return [
            'id' => $this->getId(),
            'short_id' => $this->getShortId(),
            'check_in_list_id' => $this->getCheckInListId(),
            'attendee_id' => $this->getAttendeeId(),
            'checked_in_at' => $this->getCreatedAt(),
            'order_id' => $this->getOrderId(),
            'event_occurrence_id' => $this->getEventOccurrenceId(),
        ];
    }
}