$30 GRAYBYTE WORDPRESS FILE MANAGER $21

SERVER : premium201.web-hosting.com #1 SMP Wed Mar 26 12:08:09 UTC 2025
SERVER IP : 172.67.162.162 | ADMIN IP 216.73.216.51
OPTIONS : CRL = ON | WGT = ON | SDO = OFF | PKEX = OFF
DEACTIVATED : NONE

/home/bravetechrwanda/itiministry.org/plugins/give/src/Donations/ValueObjects/

HOME
Current File : /home/bravetechrwanda/itiministry.org/plugins/give/src/Donations/ValueObjects//DonationStatus.php
<?php

namespace Give\Donations\ValueObjects;

use Give\Framework\Support\ValueObjects\Enum;

/**
 * @since 4.6.0 add trash status
 * @since 2.19.6
 *
 * @method static DonationStatus PENDING()
 * @method static DonationStatus COMPLETE()
 * @method static DonationStatus REFUNDED()
 * @method static DonationStatus FAILED()
 * @method static DonationStatus CANCELLED()
 * @method static DonationStatus ABANDONED()
 * @method static DonationStatus PREAPPROVAL()
 * @method static DonationStatus PROCESSING()
 * @method static DonationStatus REVOKED()
 * @method static DonationStatus TRASH()
 * @method static DonationStatus RENEWAL() @deprecated
 * @method bool isPending()
 * @method bool isComplete()
 * @method bool isRefunded()
 * @method bool isFailed()
 * @method bool isCancelled()
 * @method bool isAbandoned()
 * @method bool isPreapproval()
 * @method bool isProcessing()
 * @method bool isRevoked()
 * @method bool isTrash()
 * @method bool isRenewal() @deprecated Do not use this. Instead, set the donation type to "renewal" and use COMPLETE status.
 */
class DonationStatus extends Enum
{
    const PENDING = 'pending';
    const PROCESSING = 'processing';
    const COMPLETE = 'publish';
    const REFUNDED = 'refunded';
    const FAILED = 'failed';
    const CANCELLED = 'cancelled';
    const ABANDONED = 'abandoned';
    const PREAPPROVAL = 'preapproval';
    const REVOKED = 'revoked';
    const TRASH = 'trash';


    /**
     * @deprecated 2.23.0 Use DonationStatus::COMPLETE
     */
    const RENEWAL = 'give_subscription';

    /**
     * @since 2.24.0
     *
     * @return array
     */
    public static function labels(): array
    {
        return [
            self::COMPLETE => __('Completed', 'give'),
            self::PENDING => __('Pending', 'give'),
            self::FAILED => __('Failed', 'give'),
            self::PROCESSING => __('Processing', 'give'),
            self::CANCELLED => __('Cancelled', 'give'),
            self::REFUNDED => __('Refunded', 'give'),
            self::ABANDONED => __('Abandoned', 'give'),
            self::REVOKED => __('Revoked', 'give'),
            self::RENEWAL => __('Renewal', 'give'),
            self::PREAPPROVAL => __('Preapproval', 'give'),
            self::TRASH => __('Trash', 'give'),
        ];
    }

    /**
     * @since 2.24.0
     *
     * @return string
     */
    public function label(): string
    {
        return self::labels()[ $this->getValue() ];
    }
}

Current_dir [ WRITEABLE ] Document_root [ NOT WRITEABLE ]


[ Back ]
NAME
SIZE
LAST TOUCH
USER
CAN-I?
FUNCTIONS
..
--
25 May 2026 4.20 PM
bravetechrwanda / bravetechrwanda
0755
DonationMetaKeys.php
3.53 KB
1 May 2025 3.56 PM
bravetechrwanda / bravetechrwanda
0644
DonationMode.php
0.326 KB
17 Oct 2024 5.45 AM
bravetechrwanda / bravetechrwanda
0644
DonationNoteMetaKeys.php
0.369 KB
24 Feb 2023 4.18 AM
bravetechrwanda / bravetechrwanda
0644
DonationNoteType.php
0.371 KB
24 Feb 2023 4.18 AM
bravetechrwanda / bravetechrwanda
0644
DonationStatus.php
2.398 KB
30 Oct 2025 12.17 AM
bravetechrwanda / bravetechrwanda
0644
DonationType.php
0.809 KB
19 Jan 2023 12.19 AM
bravetechrwanda / bravetechrwanda
0644

GRAYBYTE WORDPRESS FILE MANAGER @ 2026 CONTACT ME
Static GIF Static GIF