| 1 | <?php |
||
| 8 | class Manager |
||
| 9 | { |
||
| 10 | /** |
||
| 11 | * Factory responsible to create the ContextObject |
||
| 12 | * |
||
| 13 | * @var Factory\FactoryInterface |
||
| 14 | */ |
||
| 15 | private static $factory; |
||
| 16 | |||
| 17 | /** |
||
| 18 | * Get the current factory |
||
| 19 | * |
||
| 20 | * @return Factory\FactoryInterface |
||
| 21 | */ |
||
| 22 | 5 | public function getFactory() |
|
| 30 | |||
| 31 | /** |
||
| 32 | * Sets a new factory class |
||
| 33 | * |
||
| 34 | * @param Factory\FactoryInterface |
||
| 35 | * @return Manager |
||
| 36 | */ |
||
| 37 | 4 | public function setFactory(Factory\FactoryInterface $factory) |
|
| 42 | |||
| 43 | /** |
||
| 44 | * @see Factory\FactoryInterface::build |
||
| 45 | */ |
||
| 46 | 1 | public function create( |
|
| 53 | |||
| 54 | /** |
||
| 55 | * @see Factory\FactoryInterface::rebuild |
||
| 56 | */ |
||
| 57 | 1 | public function rebuild( |
|
| 63 | |||
| 64 | /** |
||
| 65 | * @see Factory\FactoryInterface::getHydrator |
||
| 66 | */ |
||
| 67 | 1 | public function getHydrator() |
|
| 71 | } |
||
| 72 |