PluginProbe ʕ •ᴥ•ʔ
WP All Export – Drag & Drop Export to Any Custom CSV, XML & Excel / 1.2.10
WP All Export – Drag & Drop Export to Any Custom CSV, XML & Excel v1.2.10
trunk 0.9.0 0.9.1 1.0.0 1.0.1 1.0.2 1.0.3 1.0.4 1.0.5 1.0.6 1.0.7 1.0.8 1.0.9 1.1.0 1.1.1 1.1.2 1.1.3 1.1.4 1.1.5 1.2.0 1.2.1 1.2.10 1.2.2 1.2.3 1.2.4 1.2.5 1.2.6 1.2.7 1.2.8 1.2.9 1.3.0 1.3.1 1.3.2 1.3.3 1.3.4 1.3.5 1.3.6 1.3.7 1.3.8 1.3.9 1.4.0 1.4.1 1.4.10 1.4.11 1.4.12 1.4.13 1.4.14 1.4.15 1.4.2 1.4.3 1.4.4 1.4.5 1.4.6 1.4.7 1.4.8 1.4.9 1.5.0
wp-all-export / src / Scheduling / Interval / ScheduleTime.php
wp-all-export / src / Scheduling / Interval Last commit date
ScheduleTime.php 4 years ago
ScheduleTime.php
44 lines
1 <?php
2
3 namespace Wpae\Scheduling\Interval;
4
5
6 class ScheduleTime
7 {
8 private $times;
9
10 private $monthly;
11 private $timezone;
12
13 public function __construct($times, $monthly, $timezone)
14 {
15 $this->times = $times;
16 $this->monthly = $monthly;
17 $this->timezone = $timezone;
18 }
19
20 public function getTime()
21 {
22 $response = array();
23
24 foreach ($this->times as $time) {
25 $response[] = array(
26 'day' => $time['day'],
27 'hour' => $time['hour'],
28 'min' => $time['min']
29 );
30 }
31
32 return $response;
33 }
34
35 public function getTimezone()
36 {
37 return $this->timezone;
38 }
39
40 public function isMonthly()
41 {
42 return $this->monthly;
43 }
44 }