root/tags/RELEASE_0_2_1/examples/CDataColor.php

Revision 109, 352 bytes (checked in by mikey, 1 year ago)

added constructor cdata example and test

Line 
1 <?php
2 /**
3  * example class
4  *
5  * @author  Frank Kleine <mikey@xjconf.net>
6  */
7 /**
8  * example class
9  *
10  * @package     XJConf
11  * @subpackage  examples
12  */
13 class CDataColor
14 {
15     protected $hex;
16     
17     public function __construct($hex)
18     {
19         $this->hex = $hex;
20     }
21     
22     public function getHex()
23     {
24         return $this->hex;
25     }
26 }
27 ?>
Note: See TracBrowser for help on using the browser.