1 | <?php |
||
13 | abstract class BaseObject implements IteratorAggregate |
||
14 | { |
||
15 | /** |
||
16 | * Hold the name of object. |
||
17 | * |
||
18 | * @var string |
||
19 | */ |
||
20 | public $name; |
||
21 | |||
22 | /** |
||
23 | * Create Object with given name. |
||
24 | * |
||
25 | * @param string $name |
||
26 | */ |
||
27 | public function __construct(string $name) |
||
31 | |||
32 | /** |
||
33 | * @return RecursiveIterator |
||
34 | */ |
||
35 | public function getIterator(): RecursiveIterator |
||
39 | |||
40 | /** |
||
41 | * @return string |
||
42 | */ |
||
43 | public function getName(): string |
||
47 | |||
48 | /** |
||
49 | * @param string $name |
||
50 | */ |
||
51 | public function setName(string $name) |
||
55 | } |
||
56 |