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 ⭐️

804 B
Raw Blame
<?php

declare(strict_types=1);

namespace HiEvents\Resources\Lineup;

use HiEvents\DomainObjects\EventLineupEntryDomainObject;
use HiEvents\Resources\BaseResource;
use Illuminate\Http\Request;

/**
 * @mixin EventLineupEntryDomainObject
 */
class LineupEntryResource extends BaseResource
{
    public function toArray(Request $request): array
    {
        return [
            'id' => $this->getId(),
            'profile_id' => $this->getProfileId(),
            /** @var 'HEADLINER'|'FEATURED'|'STANDARD' */
            'billing_tier' => $this->getBillingTier(),
            'role_label' => $this->getRoleLabel(),
            'is_hidden' => $this->getIsHidden(),
            'sort_order' => $this->getSortOrder(),
            'profile' => new ProfileResource($this->getProfile()),
        ];
    }
}