Highway to PSR2
[openemr.git] / interface / super / rules / library / Code.php
blob9611707f867a90dfc4603abdce832bcc57a54f8a
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 Code
12 * @author aron
14 class Code
16 //put your code here
18 var $id;
19 var $code;
20 var $text;
21 var $codeType;
23 function __construct($id, $code, $text, $codeType)
25 $this->id = $id;
26 $this->code = $code;
27 $this->text = $text;
28 $this->codeType = $codeType;
31 function display()
33 return $this->codeType . ":" . $this->id . " - " . $this->code . " " . $this->text;