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

613 B
Raw Blame
<?php

namespace HiEvents\Resources\EventOccurrence;

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

/**
 * @mixin ProductOccurrenceVisibilityDomainObject
 */
class ProductOccurrenceVisibilityResource extends BaseResource
{
    public function toArray(Request $request): array
    {
        return [
            'id' => $this->getId(),
            'event_occurrence_id' => $this->getEventOccurrenceId(),
            'product_id' => $this->getProductId(),
            'created_at' => $this->getCreatedAt(),
        ];
    }
}