1 | <?php |
||
17 | class MigrationManagerContext |
||
18 | { |
||
19 | |||
20 | /** |
||
21 | * Database. |
||
22 | * |
||
23 | * @var ExtendedPdoInterface |
||
24 | */ |
||
25 | private $_database; |
||
26 | |||
27 | /** |
||
28 | * Container. |
||
29 | * |
||
30 | * @var Container |
||
31 | */ |
||
32 | private $_container; |
||
33 | |||
34 | /** |
||
35 | * Creates migration manager context. |
||
36 | * |
||
37 | * @param ExtendedPdoInterface $database Database. |
||
38 | */ |
||
39 | 9 | public function __construct(ExtendedPdoInterface $database) |
|
43 | |||
44 | /** |
||
45 | * Sets container. |
||
46 | * |
||
47 | * @param Container $container Container. |
||
48 | * |
||
49 | * @return void |
||
50 | */ |
||
51 | 7 | public function setContainer(Container $container) |
|
55 | |||
56 | /** |
||
57 | * Returns container. |
||
58 | * |
||
59 | * @return Container |
||
60 | */ |
||
61 | 2 | public function getContainer() |
|
65 | |||
66 | /** |
||
67 | * Returns database. |
||
68 | * |
||
69 | * @return ExtendedPdoInterface |
||
70 | */ |
||
71 | 7 | public function getDatabase() |
|
75 | |||
76 | } |
||
77 |