PocketMine-MP 5.23.3 git-f7687af337d001ddbcc47b8e773f014a33faa662
Loading...
Searching...
No Matches
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 28 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 35 of file Translatable.php.

Member Function Documentation

◆ format()

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

Definition at line 63 of file Translatable.php.

◆ getParameter()

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

Definition at line 59 of file Translatable.php.

◆ getParameters()

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

Definition at line 55 of file Translatable.php.

◆ getText()

pocketmine\lang\Translatable::getText ( )

Definition at line 48 of file Translatable.php.

◆ postfix()

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

Definition at line 71 of file Translatable.php.

◆ prefix()

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

Definition at line 67 of file Translatable.php.

Member Data Documentation

◆ $params

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

Definition at line 30 of file Translatable.php.


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