◆ __construct()
__construct |
( |
|
$text, |
|
|
array |
$params = [] |
|
) |
| |
- Parameters
-
string | $text | |
| string[] | $params |
34 parent::__construct(
$text);
◆ getParameter()
- Parameters
-
- Returns
- string
52 return isset($this->params[$i]) ? $this->params[$i] : null;
◆ getParameters()
◆ setParameter()
setParameter |
( |
|
$i, |
|
|
|
$str |
|
) |
| |
- Parameters
-
60 if($i < 0 or $i > count($this->params)){
61 throw new \InvalidArgumentException(
"Invalid index $i, have " . count($this->params));
64 $this->params[(int) $i] = $str;
◆ setParameters()
setParameters |
( |
array |
$params | ) |
|
- Parameters
-
73 $this->params[$i] = (string) $str;
◆ $params
The documentation for this class was generated from the following file:
- src/pocketmine/event/TranslationContainer.php