PocketMine-MP 5.11.1 git-db894e3a4a5bb9a80b3ac07ac91f58bdaf15176a
pocketmine\lang\Translatable Class Reference
+ Collaboration diagram for pocketmine\lang\Translatable:

Public Member Functions

 __construct (protected string $text, array $params=[])
 
 format (string $before, string $after)
 
 getParameter (int|string $i)
 
 getParameters ()
 
 getText ()
 
 postfix (string $postfix)
 
 prefix (string $prefix)
 

Protected Attributes

array $params = []
 

Detailed Description

Definition at line 26 of file Translatable.php.

Constructor & Destructor Documentation

◆ __construct()

pocketmine\lang\Translatable::__construct ( protected string  $text,
array  $params = [] 
)
Parameters
(float|int|string|Translatable)[]$params

Definition at line 33 of file Translatable.php.

Member Function Documentation

◆ format()

pocketmine\lang\Translatable::format ( string  $before,
string  $after 
)

Definition at line 61 of file Translatable.php.

◆ getParameter()

pocketmine\lang\Translatable::getParameter ( int|string  $i)

Definition at line 57 of file Translatable.php.

◆ getParameters()

pocketmine\lang\Translatable::getParameters ( )
Returns
string[]|Translatable[]

Definition at line 53 of file Translatable.php.

◆ getText()

pocketmine\lang\Translatable::getText ( )

Definition at line 46 of file Translatable.php.

◆ postfix()

pocketmine\lang\Translatable::postfix ( string  $postfix)

Definition at line 69 of file Translatable.php.

◆ prefix()

pocketmine\lang\Translatable::prefix ( string  $prefix)

Definition at line 65 of file Translatable.php.

Member Data Documentation

◆ $params

string[] Translatable[] pocketmine\lang\Translatable::$params = []
protected

Definition at line 28 of file Translatable.php.


The documentation for this class was generated from the following file: