root/tags/RELEASE_0_1_1/examples/UpperString.php

Revision 27, 0.7 kB (checked in by mikey, 2 years ago)

converted Example1

Line 
1 <?php
2 /**
3  * example class
4  *
5  * @author  Stephan Schmidt <stephan.schmidt@schlund.de>
6  * @author  Frank Kleine <frank.kleine@schlund.de>
7  */
8 /**
9  * example class
10  *
11  * @package     XJConf
12  * @subpackage  examples
13  */
14 class UpperString
15 {
16     /**
17      * the data
18      *
19      * @var  string
20      */
21     private $data = null;
22     
23     /**
24      * constructor
25      *
26      * @param  string  $data  the data to make upper case
27      */
28     public function __construct($data)
29     {
30         $this->data = strtoupper($data);
31     }
32     
33     /**
34      * returns the upper case string
35      *
36      * @return  string
37      */
38     public function getString()
39     {
40         return $this->data;
41     }
42 }
43 ?>
Note: See TracBrowser for help on using the browser.