| Server IP : 5.129.245.98 / Your IP : 216.73.217.19 Web Server : Apache/2.4.66 (Debian) System : Linux 1b8c17c336b9 6.8.0-111-generic #111-Ubuntu SMP PREEMPT_DYNAMIC Sat Apr 11 23:16:02 UTC 2026 x86_64 User : www-data ( 33) PHP Version : 8.3.30 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : OFF | Perl : ON | Python : OFF | Sudo : OFF | Pkexec : OFF Directory : /var/www/html/wp-content/plugins/wp-all-import-pro/src/Scheduling/Interval/ |
Upload File : |
<?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;
}
}