Translatable
Table of Contents
-
$params
: array<string|int, string>|array<string|int, Translatable>
-
$text
: string
-
__construct()
: mixed
-
format()
: self
-
getParameter()
: Translatable|string|null
-
getParameters()
: array<string|int, string>|array<string|int, Translatable>
-
getText()
: string
-
postfix()
: self
-
prefix()
: self
$params
protected
array<string|int, string>|array<string|int, Translatable>
$params
= []
$text
protected
string
$text
__construct()
public
__construct(string $text[, array<string|int, float|int|string|\pocketmine\lang\Translatable> $params = [] ]) : mixed
Parameters
-
$text
: string
-
-
$params
: array<string|int, float|int|string|\pocketmine\lang\Translatable>
= []
-
Return values
mixed
—
public
format(string $before, string $after) : self
Parameters
-
$before
: string
-
-
$after
: string
-
Return values
self
—
getParameter()
public
getParameter(int|string $i) : Translatable|string|null
Parameters
-
$i
: int|string
-
Return values
Translatable|string|null
—
getParameters()
public
getParameters() : array<string|int, string>|array<string|int, Translatable>
Return values
array<string|int, string>|array<string|int, Translatable>
—
getText()
public
getText() : string
Return values
string
—
postfix()
public
postfix(string $postfix) : self
Parameters
-
$postfix
: string
-
Return values
self
—
prefix()
public
prefix(string $prefix) : self
Parameters
-
$prefix
: string
-
Return values
self
—