HEX
Server: LiteSpeed
System: Linux server315.web-hosting.com 4.18.0-553.54.1.lve.el8.x86_64 #1 SMP Wed Jun 4 13:01:13 UTC 2025 x86_64
User: globfdxw (6114)
PHP: 8.1.34
Disabled: NONE
Upload Files
File: /home/globfdxw/www/wp-content/plugins/give/src/Framework/Migrations/Contracts/BaseMigration.php
<?php

namespace Give\Framework\Migrations\Contracts;

use Give\Framework\Exceptions\Primitives\RuntimeException;

/**
 * Base Migration class
 *
 * @since 4.0.0
 */
abstract class BaseMigration
{
    /**
     * Return a unique identifier for the migration
     *
     * @return string
     */
    public static function id()
    {
        throw new RuntimeException('A unique ID must be provided for the migration');
    }

    /**
     * Return a Unix Timestamp for when the migration was created
     *
     * Example: strtotime( '2020-09-16 12:30:00')
     *
     * @since 2.9.0
     *
     * @return int Unix timestamp for when the migration was created
     */
    public static function timestamp()
    {
        throw new RuntimeException('This method must be overridden to return a valid unix timestamp');
    }

    /**
     * Return migration title
     *
     * @since 2.10.0
     *
     * @return string
     */
    public static function title()
    {
        return static::id();
    }

    /**
     * Return migration source
     *
     * @since 2.10.0
     *
     * @return string
     */
    public static function source()
    {
        return esc_html__('GiveWP Core', 'give');
    }
}