PluginProbe ʕ •ᴥ•ʔ
WP Popular Posts / 5.1.0
WP Popular Posts v5.1.0
4.0.8 4.0.9 4.1.0 4.1.1 4.1.2 4.2.0 4.2.1 4.2.2 5.0.0 5.0.1 5.0.2 5.1.0 5.2.0 5.2.1 5.2.2 5.2.3 5.2.4 5.3.0 5.3.1 5.3.2 5.3.3 5.3.4 5.3.5 5.3.6 5.4.0 5.4.1 5.4.2 5.5.0 5.5.1 6.0.0 6.0.1 6.0.2 6.0.3 6.0.4 6.0.5 6.1.0 6.1.1 6.1.2 6.1.3 6.1.4 6.2.0 6.2.1 6.3.0 6.3.1 6.3.2 6.3.3 6.3.4 6.4.0 6.4.1 6.4.2 7.0.0 7.0.1 7.1.0 7.2.0 7.3.0 7.3.1 7.3.2 7.3.3 7.3.4 7.3.5 7.3.6 7.3.7 7.3.8 7.4.0 trunk 2.3.7 3.0.0 3.0.1 3.0.2 3.0.3 3.1.0 3.1.1 3.2.0 3.2.1 3.2.2 3.2.3 3.3.0 3.3.1 3.3.2 3.3.3 3.3.4 4.0.0 4.0.1 4.0.10 4.0.11 4.0.12 4.0.13 4.0.2 4.0.3 4.0.5 4.0.6
wordpress-popular-posts / src / Moment / MomentPeriodVo.php
wordpress-popular-posts / src / Moment Last commit date
CustomFormats 6 years ago Locales 6 years ago FormatsInterface.php 6 years ago LICENSE.md 6 years ago Moment.php 6 years ago MomentException.php 6 years ago MomentFromVo.php 6 years ago MomentHelper.php 6 years ago MomentLocale.php 6 years ago MomentPeriodVo.php 6 years ago
MomentPeriodVo.php
103 lines
1 <?php
2
3 namespace WordPressPopularPosts\Moment;
4
5 /**
6 * MomentPeriodVo
7 * @package Moment
8 * @author Tino Ehrich (tino@bigpun.me)
9 */
10 class MomentPeriodVo
11 {
12 /** @var Moment */
13 protected $startDate;
14
15 /** @var Moment */
16 protected $endDate;
17
18 /** @var Moment */
19 protected $refDate;
20
21 /** @var int */
22 protected $interval;
23
24 /**
25 * @return int
26 */
27 public function getInterval()
28 {
29 return $this->interval;
30 }
31
32 /**
33 * @param int $interval
34 *
35 * @return MomentPeriodVo
36 */
37 public function setInterval($interval)
38 {
39 $this->interval = $interval;
40
41 return $this;
42 }
43
44 /**
45 * @param Moment $reference
46 *
47 * @return MomentPeriodVo
48 */
49 public function setRefDate(Moment $reference)
50 {
51 $this->refDate = $reference;
52
53 return $this;
54 }
55
56 /**
57 * @return \Moment\Moment
58 */
59 public function getRefDate()
60 {
61 return $this->refDate;
62 }
63
64 /**
65 * @param Moment $end
66 *
67 * @return MomentPeriodVo
68 */
69 public function setEndDate(Moment $end)
70 {
71 $this->endDate = $end;
72
73 return $this;
74 }
75
76 /**
77 * @return Moment
78 */
79 public function getEndDate()
80 {
81 return $this->endDate;
82 }
83
84 /**
85 * @param Moment $start
86 *
87 * @return MomentPeriodVo
88 */
89 public function setStartDate(Moment $start)
90 {
91 $this->startDate = $start;
92
93 return $this;
94 }
95
96 /**
97 * @return Moment
98 */
99 public function getStartDate()
100 {
101 return $this->startDate;
102 }
103 }