Highway to PSR2
[openemr.git] / interface / super / rules / library / ReminderIntervalDetail.php
blob2cc9be919ebdcf2e6090a04e8034bdf2f4342d63
1 <?php
2 // Copyright (C) 2010-2011 Aron Racho <aron@mi-squred.com>
3 //
4 // This program is free software; you can redistribute it and/or
5 // modify it under the terms of the GNU General Public License
6 // as published by the Free Software Foundation; either version 2
7 // of the License, or (at your option) any later version.
9 /**
10 * Description of ReminderIntervalDetail
12 * @author aron
14 class ReminderIntervalDetail
16 /**
18 * @var ReminderIntervalType
20 var $intervalType;
21 /**
23 * @var ReminderIntervalRange
25 var $intervalRange;
26 var $amount;
27 /**
29 * @var TimeUnit
31 var $timeUnit;
33 /**
35 * @param ReminderIntervalType $type
36 * @param ReminderIntervalRange $range
37 * @param integer $amount
38 * @param TimeUnit $unit
40 function __construct($type, $range, $amount, $unit)
42 $this->intervalType = $type;
43 $this->intervalRange = $range;
44 $this->amount = $amount;
45 $this->timeUnit = $unit;
48 function display()
50 $display = xl($this->intervalRange->lbl) . ": "
51 . xl($this->amount) . " " . xl($this->timeUnit->lbl);
52 return $display;