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 ⭐️
PHP attendize-alternativedoor-managementevent-check-inevent-managementevent-registrationevent-ticketingeventbrite-alternativeeventslaravelopen-sourcephpreactself-hostedsell-ticketssell-tickets-onlineticket-sellingticketing-systemtickettailor-alternativetito-alternative
<?php
namespace HiEvents\Services\Application\Handlers\Order\DTO;
use HiEvents\DataTransferObjects\Attributes\CollectionOf;
use HiEvents\DataTransferObjects\BaseDTO;
use Illuminate\Support\Collection;
class CompleteOrderProductDataDTO extends BaseDTO
{
public function __construct(
public readonly int $product_price_id,
#[CollectionOf(OrderQuestionsDTO::class)]
public readonly ?Collection $questions = null,
public readonly ?string $first_name = null,
public readonly ?string $last_name = null,
public readonly ?string $email = null,
public readonly ?string $seat_uid = null,
) {}
public function isTicketProduct(): bool
{
return $this->first_name !== null
&& $this->last_name !== null
&& $this->email !== null;
}
}