SignText
in package
Table of Contents
- LINE_COUNT = 4
- $lines : array<string|int, string>
- __construct() : mixed
- fromBlob() : SignText
- Parses sign lines from the given string blob.
- getLine() : string
- Returns the sign line at the given offset.
- getLines() : array<string|int, string>
- Returns an array of lines currently on the sign.
- checkLineIndex() : void
Constants
LINE_COUNT
public
mixed
LINE_COUNT
= 4
Properties
$lines
private
array<string|int, string>
$lines
Methods
__construct()
public
__construct([array<string|int, string>|null $lines = null ]) : mixed
Parameters
- $lines : array<string|int, string>|null = null
-
index-sensitive; omitting an index will leave it unchanged
Tags
Return values
mixed —fromBlob()
Parses sign lines from the given string blob.
public
static fromBlob(string $blob) : SignText
TODO: add a strict mode for this
Parameters
- $blob : string
Tags
Return values
SignText —getLine()
Returns the sign line at the given offset.
public
getLine(int $index) : string
Parameters
- $index : int
Tags
Return values
string —getLines()
Returns an array of lines currently on the sign.
public
getLines() : array<string|int, string>
Return values
array<string|int, string> —checkLineIndex()
private
checkLineIndex(int|string $index) : void
Parameters
- $index : int|string