Add getLibVersion and getExtVersion method for extensions and libs

This commit is contained in:
crazywhalecc
2024-06-30 22:37:01 +08:00
committed by Jerry Ma
parent f645c8869a
commit eb00e0012f
8 changed files with 157 additions and 1 deletions

View File

@@ -182,6 +182,16 @@ abstract class LibraryBase
// do nothing, just throw wrong usage exception if not valid
}
/**
* Get current lib version
*
* @return null|string Version string or null
*/
public function getLibVersion(): ?string
{
return null;
}
/**
* Get current builder object.
*/