private static function isCompatable(Plugin $plugin) : bool
  {
    $frameworkVersion = substr(self::getVersion(), 0, strrpos(self::getVersion(), '*'));
    $pluginVersions   = explode('|', $plugin::FRAMEWORK);

    foreach($pluginVersions as $version) {
      $version = substr($version, 0, strrpos($version, '*'));

      return starts_with($frameworkVersion, $version);
    }

    return false;
  }
private static function isCompatable(Plugin $plugin) : bool
  {
    $frameworkVersion = substr(self::getVersion(), 0, strrpos(self::getVersion(), '*'));
    $pluginVersions   = explode('|', $plugin::FRAMEWORK);

    foreach($pluginVersions as $version) {
      $version = substr($version, 0, strrpos($version, '*'));

      return starts_with($frameworkVersion, $version);
    }

    return false;
  }
private static function isCompatable ( Plugin $ plugin ) : bool { $ frameworkVersion = substr ( self :: getVersion ( ) , 0 , strrpos ( self :: getVersion ( ) , '*' ) ) ; $ pluginVersions = explode ( '|' , $ plugin :: FRAMEWORK ) ; foreach ( $ pluginVersions as $ version ) { $ version = substr ( $ version , 0 , strrpos ( $ version , '*' ) ) ; return starts_with ( $ frameworkVersion , $ version ) ; } return false ; }
Check if plugin supports the current version of the framework

@param Plugin $plugin
@return bool
Check if plugin supports the current version of the framework