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

722 B
Raw Blame
<?php

namespace HiEvents\DomainObjects;

use HiEvents\DomainObjects\Enums\StripePlatform;

class StripePaymentDomainObject extends Generated\StripePaymentDomainObjectAbstract
{
    private ?OrderDomainObject $order = null;

    public function getOrder(): ?OrderDomainObject
    {
        return $this->order;
    }

    public function setOrder(?OrderDomainObject $order): self
    {
        $this->order = $order;

        return $this;
    }

    /**
     * Get the Stripe platform enum for this payment
     */
    public function getStripePlatformEnum(): ?StripePlatform
    {
        return $this->getStripePlatform()
            ? StripePlatform::fromString($this->getStripePlatform())
            : null;
    }
}