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

504 B
Raw Blame
<?php

namespace HiEvents\DomainObjects\Enums;

enum StripePlatform: string
{
    case CANADA = 'ca';
    case IRELAND = 'ie';

    public static function fromString(?string $value): ?self
    {
        if ($value === null) {
            return null;
        }

        return self::tryFrom($value);
    }

    public function toString(): string
    {
        return $this->value;
    }

    public static function getAllValues(): array
    {
        return array_column(self::cases(), 'value');
    }
}