Interfaces, Classes and Traits
- BlockParserInterface
- EnvironmentAwareInterface
Table of Contents
-
$environment
: EnvironmentInterface
-
parse()
: bool
-
setEnvironment()
: void
-
getAlignment()
: string|null
-
isANewBlock()
: bool
-
parseColumns()
: array<int, string>
-
parseRow()
: TableRow|null
-
split()
: array<int, string>
parse()
public
parse(ContextInterface $context, Cursor $cursor) : bool
Parameters
-
$context
: ContextInterface
-
-
$cursor
: Cursor
-
Return values
bool
—
setEnvironment()
public
setEnvironment(EnvironmentInterface $environment) : void
Parameters
-
$environment
: EnvironmentInterface
-
Return values
void
—
getAlignment()
private
static getAlignment(bool $left, bool $right) : string|null
Parameters
-
$left
: bool
-
-
$right
: bool
-
Return values
string|null
—
isANewBlock()
private
static isANewBlock(EnvironmentInterface $environment, string $line) : bool
Parameters
-
$environment
: EnvironmentInterface
-
-
$line
: string
-
Return values
bool
—
parseColumns()
private
parseColumns(Cursor $cursor) : array<int, string>
Parameters
-
$cursor
: Cursor
-
Return values
array<int, string>
—
parseRow()
private
parseRow(string $line, array<int, string> $columns[, string $type = TableCell::TYPE_BODY ]) : TableRow|null
Parameters
-
$line
: string
-
-
$columns
: array<int, string>
-
-
$type
: string
= TableCell::TYPE_BODY
-
Return values
TableRow|null
—
split()
private
split(Cursor $cursor) : array<int, string>
Parameters
-
$cursor
: Cursor
-
Return values
array<int, string>
—