diff options
Diffstat (limited to '')
-rw-r--r-- | library/Reporting/Timerange.php | 35 |
1 files changed, 35 insertions, 0 deletions
diff --git a/library/Reporting/Timerange.php b/library/Reporting/Timerange.php new file mode 100644 index 0000000..086bfb8 --- /dev/null +++ b/library/Reporting/Timerange.php @@ -0,0 +1,35 @@ +<?php +// Icinga Reporting | (c) 2018 Icinga GmbH | GPLv2 + +namespace Icinga\Module\Reporting; + +class Timerange +{ + /** @var \DateTime */ + protected $start; + + /** @var \DateTime */ + protected $end; + + public function __construct(\DateTime $start, \DateTime $end) + { + $this->start = $start; + $this->end = $end; + } + + /** + * @return \DateTime + */ + public function getStart() + { + return $this->start; + } + + /** + * @return \DateTime + */ + public function getEnd() + { + return $this->end; + } +} |