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