]> Raphaƫl G. Git Repositories - packbundle/blobdiff - RapsysPackBundle.php
Fix deprecated implicit conversion from float to int loses precision message
[packbundle] / RapsysPackBundle.php
index 67b26ce0bf57812df969222467d3cc0c0f62ac22..e773042c3abad4dc9e235d0cc02fa17485cc938f 100644 (file)
@@ -23,7 +23,7 @@ class RapsysPackBundle extends Bundle {
         *
         * @return string The bundle alias
         */
         *
         * @return string The bundle alias
         */
-    public static function getAlias(): string {
+       public static function getAlias(): string {
                //With namespace
                if ($npos = strrpos(static::class, '\\')) {
                        //Set name pos
                //With namespace
                if ($npos = strrpos(static::class, '\\')) {
                        //Set name pos
@@ -45,5 +45,15 @@ class RapsysPackBundle extends Bundle {
 
                //Return underscored lowercase bundle alias
                return Container::underscore(substr(static::class, $npos, $bpos));
 
                //Return underscored lowercase bundle alias
                return Container::underscore(substr(static::class, $npos, $bpos));
-    }
+       }
+
+       /**
+        * Return bundle version
+        *
+        * @return string The bundle version
+        */
+       public static function getVersion(): string {
+               //Return version
+               return '0.2.5';
+       }
 }
 }