1 | <?php |
||
20 | class SchemaHandler extends \Jitamin\Foundation\Base |
||
21 | { |
||
22 | /** |
||
23 | * Schema version table for plugins. |
||
24 | * |
||
25 | * @var string |
||
26 | */ |
||
27 | const TABLE_SCHEMA = 'plugin_schema_versions'; |
||
28 | |||
29 | /** |
||
30 | * Get schema filename. |
||
31 | * |
||
32 | * @static |
||
33 | * |
||
34 | * @param string $pluginName |
||
35 | * |
||
36 | * @return string |
||
37 | */ |
||
38 | public static function getSchemaFilename($pluginName) |
||
42 | |||
43 | /** |
||
44 | * Return true if the plugin has schema. |
||
45 | * |
||
46 | * @static |
||
47 | * |
||
48 | * @param string $pluginName |
||
49 | * |
||
50 | * @return bool |
||
51 | */ |
||
52 | public static function hasSchema($pluginName) |
||
56 | |||
57 | /** |
||
58 | * Load plugin schema. |
||
59 | * |
||
60 | * @param string $pluginName |
||
61 | */ |
||
62 | public function loadSchema($pluginName) |
||
67 | |||
68 | /** |
||
69 | * Execute plugin schema migrations. |
||
70 | * |
||
71 | * @param string $pluginName |
||
72 | */ |
||
73 | public function migrateSchema($pluginName) |
||
100 | |||
101 | /** |
||
102 | * Get current plugin schema version. |
||
103 | * |
||
104 | * @param string $plugin |
||
105 | * |
||
106 | * @return int |
||
107 | */ |
||
108 | public function getSchemaVersion($plugin) |
||
112 | |||
113 | /** |
||
114 | * Save last plugin schema version. |
||
115 | * |
||
116 | * @param string $plugin |
||
117 | * @param int $version |
||
118 | * |
||
119 | * @return bool |
||
120 | */ |
||
121 | public function setSchemaVersion($plugin, $version) |
||
129 | } |
||
130 |
Since your code implements the magic getter
_get
, this function will be called for any read access on an undefined variable. You can add the@property
annotation to your class or interface to document the existence of this variable.If the property has read access only, you can use the @property-read annotation instead.
Of course, you may also just have mistyped another name, in which case you should fix the error.
See also the PhpDoc documentation for @property.