mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-09-04 17:06:16 +00:00
and more typehints
This commit is contained in:
@ -33,25 +33,25 @@ interface PluginLoader{
|
||||
*
|
||||
* @param string $file
|
||||
*
|
||||
* @return Plugin
|
||||
* @return Plugin|null
|
||||
*/
|
||||
public function loadPlugin($file);
|
||||
public function loadPlugin(string $file);
|
||||
|
||||
/**
|
||||
* Gets the PluginDescription from the file
|
||||
*
|
||||
* @param string $file
|
||||
*
|
||||
* @return PluginDescription
|
||||
* @return null|PluginDescription
|
||||
*/
|
||||
public function getPluginDescription($file);
|
||||
public function getPluginDescription(string $file);
|
||||
|
||||
/**
|
||||
* Returns the filename regex patterns that this loader accepts
|
||||
*
|
||||
* @return string
|
||||
*/
|
||||
public function getPluginFilters();
|
||||
public function getPluginFilters() : string;
|
||||
|
||||
/**
|
||||
* @param Plugin $plugin
|
||||
|
Reference in New Issue
Block a user