Initial Upload
This commit is contained in:
38
lib/Entity/ScheduleEvent.php
Normal file
38
lib/Entity/ScheduleEvent.php
Normal file
@@ -0,0 +1,38 @@
|
||||
<?php
|
||||
/*
|
||||
* Spring Signage Ltd - http://www.springsignage.com
|
||||
* Copyright (C) 2016 Spring Signage Ltd
|
||||
* (ScheduleEvent.php)
|
||||
*/
|
||||
|
||||
|
||||
namespace Xibo\Entity;
|
||||
|
||||
/**
|
||||
* Class ScheduleEvent
|
||||
* @package Xibo\Entity
|
||||
*/
|
||||
class ScheduleEvent
|
||||
{
|
||||
public $fromDt;
|
||||
public $toDt;
|
||||
|
||||
/**
|
||||
* ScheduleEvent constructor.
|
||||
* @param $fromDt
|
||||
* @param $toDt
|
||||
*/
|
||||
public function __construct($fromDt, $toDt)
|
||||
{
|
||||
$this->fromDt = $fromDt;
|
||||
$this->toDt = $toDt;
|
||||
}
|
||||
|
||||
/**
|
||||
* @return string
|
||||
*/
|
||||
public function __toString()
|
||||
{
|
||||
return $this->fromDt . $this->toDt;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user