root/trunk/examples/hidden/MyNestedClass.php
| Revision 46, 0.6 kB (checked in by mikey, 2 years ago) |
|---|
| Line | |
|---|---|
| 1 | <?php |
| 2 | /** |
| 3 | * Class for example purposes. |
| 4 | * |
| 5 | * @author Frank Kleine <frank.kleine@schlund.de> |
| 6 | */ |
| 7 | /** |
| 8 | * Class for example purposes. |
| 9 | * |
| 10 | * @package XJConf |
| 11 | * @subpackage examples |
| 12 | */ |
| 13 | class MyNestedClass |
| 14 | { |
| 15 | /** |
| 16 | * hold bar |
| 17 | * |
| 18 | * @var MyInterface |
| 19 | */ |
| 20 | private $bar; |
| 21 | |
| 22 | /** |
| 23 | * just foo |
| 24 | */ |
| 25 | public function foo() |
| 26 | { |
| 27 | // nothing to do here |
| 28 | } |
| 29 | |
| 30 | /** |
| 31 | * set bar |
| 32 | * |
| 33 | * @param mixed $bar |
| 34 | */ |
| 35 | public function setBar($bar) |
| 36 | { |
| 37 | $this->bar = $bar; |
| 38 | } |
| 39 | |
| 40 | /** |
| 41 | * return bar |
| 42 | * |
| 43 | * @return mixed |
| 44 | */ |
| 45 | public function getBar() |
| 46 | { |
| 47 | return $this->bar; |
| 48 | } |
| 49 | } |
| 50 | ?> |
Note: See TracBrowser for help on using the browser.
