1 | <?php |
||
14 | abstract class AbstractCommand extends \Symfony\Component\Console\Command\Command |
||
15 | { |
||
16 | /** |
||
17 | * @var \CI_Controller |
||
18 | */ |
||
19 | protected $codeigniter; |
||
20 | |||
21 | /** |
||
22 | * @var \Rougin\Describe\Describe |
||
23 | */ |
||
24 | protected $describe; |
||
25 | |||
26 | /** |
||
27 | * @var \League\Flysystem\Filesystem |
||
28 | */ |
||
29 | protected $filesystem; |
||
30 | |||
31 | /** |
||
32 | * @var \Twig_Environment |
||
33 | */ |
||
34 | protected $renderer; |
||
35 | |||
36 | /** |
||
37 | * @param \CI_Controller $codeigniter |
||
38 | * @param \Rougin\Describe\Describe $describe |
||
39 | * @param \League\Flysystem\Filesystem $filesystem |
||
40 | * @param \Twig_Environment $renderer |
||
41 | */ |
||
42 | 33 | public function __construct(\CI_Controller $codeigniter, Describe $describe, Filesystem $filesystem, \Twig_Environment $renderer) |
|
51 | |||
52 | /** |
||
53 | * Changes the migration version. |
||
54 | * |
||
55 | * @param integer $current |
||
56 | * @param integer $timestamp |
||
57 | * @return void |
||
58 | */ |
||
59 | 9 | public function changeVersion($current, $timestamp) |
|
69 | |||
70 | /** |
||
71 | * Gets the latest migration version |
||
72 | * |
||
73 | * @param boolean $rollback |
||
74 | * @return string |
||
75 | */ |
||
76 | 12 | public function getLatestVersion($rollback = false) |
|
89 | |||
90 | /** |
||
91 | * Gets list of migrations from the specified directory. |
||
92 | * |
||
93 | * @param string $path |
||
94 | * @return array |
||
95 | */ |
||
96 | 12 | public function getMigrations($path) |
|
118 | |||
119 | /** |
||
120 | * Returns the current migration type. |
||
121 | * |
||
122 | * @return string |
||
123 | */ |
||
124 | 30 | public function getMigrationType() |
|
132 | |||
133 | /** |
||
134 | * Checks whether the command is enabled or not in the current environment. |
||
135 | * |
||
136 | * @return boolean |
||
137 | */ |
||
138 | 3 | public function isEnabled() |
|
144 | |||
145 | /** |
||
146 | * Migrates the specified versions to database. |
||
147 | * |
||
148 | * @param string $old |
||
149 | * @param string $new |
||
150 | * @return void |
||
151 | */ |
||
152 | 9 | public function migrate($old, $new) |
|
163 | |||
164 | /** |
||
165 | * Enables/disables the Migration Class. |
||
166 | * |
||
167 | * @param boolean $enabled |
||
168 | * @return void |
||
169 | */ |
||
170 | 11 | public function toggleMigration($enabled = false) |
|
185 | } |
||
186 |
An attempt at access to an undefined property has been detected. This may either be a typographical error or the property has been renamed but there are still references to its old name.
If you really want to allow access to undefined properties, you can define magic methods to allow access. See the php core documentation on Overloading.