From 396aafbce04dce97aea811c65eefd54a4b58e3af Mon Sep 17 00:00:00 2001 From: Dmitriy Simushev Date: Tue, 18 Nov 2014 12:16:37 +0000 Subject: [PATCH] Add plugin version --- Plugin.php | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/Plugin.php b/Plugin.php index 27ca356..2daaedf 100644 --- a/Plugin.php +++ b/Plugin.php @@ -77,6 +77,16 @@ class Plugin extends AbstractPlugin implements PluginInterface $dispatcher->attachListener(Events::BUTTON_GENERATE, $this, 'alterButton'); } + /** + * Specify version of the plugin. + * + * @return string Plugin's version. + */ + public static function getVersion() + { + return '0.1.0'; + } + /** * Specify dependencies of the plugin. *