HEX
Server: Apache
System: Linux 4801f1b1.ptr.provps.com 6.17.8-1.el9.elrepo.x86_64 #1 SMP PREEMPT_DYNAMIC Thu Nov 13 18:02:25 EST 2025 x86_64
User: nassaugo (1004)
PHP: 8.1.34
Disabled: exec,passthru,shell_exec,system
Upload Files
File: /home/nassaugo/www/wp-content/plugins/wp-all-import-pro/src/Scheduling/Interval/ScheduleTime.php
<?php

namespace Wpai\Scheduling\Interval;

/**
 * Class ScheduleTime
 * @package Wpai\Scheduling\Interval
 */
class ScheduleTime
{
    /**
     * @var
     */
    private $times;

    /**
     * @var
     */
    private $monthly;
    /**
     * @var
     */
    private $timezone;

    /**
     * ScheduleTime constructor.
     * @param $times
     * @param $monthly
     * @param $timezone
     */
    public function __construct($times, $monthly, $timezone)
    {
        $this->times = $times;
        $this->monthly = $monthly;
        $this->timezone = $timezone;
    }

    /**
     * @return array
     */
    public function getTime()
    {
        $response = array();

        foreach ($this->times as $time) {
            $response[] = array(
                'day' => $time['day'],
                'hour' => $time['hour'],
                'min' => $time['min']
            );
        }

        return $response;
    }

    /**
     * @return mixed
     */
    public function getTimezone()
    {
        return $this->timezone;
    }

    /**
     * @return mixed
     */
    public function isMonthly()
    {
        return $this->monthly;
    }
}