| Server IP : 46.105.57.169 / Your IP : 216.73.216.67 Web Server : Apache System : Linux webm002.cluster120.gra.hosting.ovh.net 6.18.42-ovh-vps-grsec-zfs+ #1 SMP PREEMPT_DYNAMIC Wed Aug 5 15:59:48 CEST 2026 x86_64 User : verseaumee ( 152031) PHP Version : 8.5.7 Disable Function : _dyuweyrj4,_dyuweyrj4r,dl MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : ON | Sudo : OFF | Pkexec : OFF Directory : /home/verseaumee/blueversion/wp-content/plugins/give/src/MigrationLog/ |
Upload File : |
<?php
namespace Give\MigrationLog;
/**
* Class MigrationLogStatus
* @package Give\MigrationLog
*
* @since 2.10.0
*/
class MigrationLogStatus
{
const SUCCESS = 'success';
const FAILED = 'failed';
const PENDING = 'pending';
/**
* Get default migration status
*
* @return string
*/
public static function getDefault()
{
return MigrationLogStatus::FAILED;
}
/**
* Get all migration statuses
*
* @return array
*/
public static function getAll()
{
return [
MigrationLogStatus::SUCCESS => esc_html__('Success', 'give'),
MigrationLogStatus::FAILED => esc_html__('Failed', 'give'),
MigrationLogStatus::PENDING => esc_html__('Pending', 'give'),
];
}
/**
* Check if value is a valid migration status
*
* @param string $status
*
* @return bool
*/
public static function isValid($status)
{
return array_key_exists($status, self::getAll());
}
}