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

440 B
Raw Blame
<?php

namespace HiEvents\DomainObjects;

use HiEvents\Repository\DTO\WidgetStatsDTO;

class WidgetDomainObject extends Generated\WidgetDomainObjectAbstract
{
    private ?WidgetStatsDTO $stats = null;

    public function getStats(): WidgetStatsDTO
    {
        return $this->stats ?? new WidgetStatsDTO;
    }

    public function setStats(WidgetStatsDTO $stats): self
    {
        $this->stats = $stats;

        return $this;
    }
}