PocketMine-MP 5.19.1 git-5cc1068cd43264d3363295eb8d6901e02f467897
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: