<?php

namespace Fifa\ConnectId\Sdk\Util\Data\Message;

/**
 * Class TmsActionType
 * @package Fifa\ConnectId\Sdk\Util\Data\Message
 */
class TmsActionType
{
    const ADD_PLAYER = 'add-player';
    const UPDATE_PLAYER = 'update-player';
    const DOMESTIC_TRANSFER_DECLARATION = 'domestic-transfer-declaration';
    const DOMESTIC_TRANSFER_CONFIRMATION = 'domestic-transfer-confirmation';
    const PROOF_OF_PAYMENT = "proof-of-payment";
    const PROOF_OF_PAYMENT_CONFIRMATION = "proof-of-payment-confirmation";
    const FIRST_PRO_REGISTRATION = "first-pro-registration";
    const FIRST_PRO_REGISTRATION_CONFIRMATION = "first-pro-registration-confirmation";

    /**
     * @return string[]
     */
    public static function all(): array
    {
        return [
            self::ADD_PLAYER, self::UPDATE_PLAYER, self::DOMESTIC_TRANSFER_DECLARATION, self::DOMESTIC_TRANSFER_CONFIRMATION,
            self::PROOF_OF_PAYMENT, self::PROOF_OF_PAYMENT_CONFIRMATION, self::FIRST_PRO_REGISTRATION, self::FIRST_PRO_REGISTRATION_CONFIRMATION
        ];
    }

    /**
     * @return string
     */
    public function __toString()
    {
        return join(', ', self::all());
    }
}