root/trunk/examples/MyCollector.php

Revision 89, 0.6 kB (checked in by mikey, 2 years ago)

added integration tests using the existing examples

Line 
1 <?php
2 /**
3  * Class for example purposes.
4  *
5  * @author  Stephan Schmidt <stephan.schmidt@schlund.de>
6  * @author  Frank Kleine <frank.kleine@schlund.de>
7  */
8 require_once dirname(__FILE__) . '/MyInterface.php';
9 /**
10  * Class for example purposes.
11  *
12  * @package     XJConf
13  * @subpackage  examples
14  */
15 class MyCollector
16 {
17     /**
18      * hold bar
19      *
20      * @var  array<MyInterface>
21      */
22     private $bar = array();
23
24     /**
25      * set bar
26      *
27      * @param  MyInterface  $bar
28      */
29     public function addBar(MyInterface $bar)
30     {
31         $this->bar[] = $bar;
32     }
33
34     public function getBar()
35     {
36         return $this->bar;
37     }
38 }
39 ?>
Note: See TracBrowser for help on using the browser.