Documentation

SourceRepresentation extends Representation
in package

Table of Contents

$contents  : mixed
$filename  : mixed
$hints  : mixed
$implicit_label  : mixed
$label  : mixed
$line  : mixed
$showfilename  : mixed
$source  : mixed
$name  : mixed
__construct()  : mixed
getLabel()  : mixed
getName()  : mixed
getSource()  : null|array<string|int, mixed>
Gets section of source code.
labelIsImplicit()  : mixed
setName()  : mixed

Properties

Methods

__construct()

public __construct(mixed $filename, mixed $line[, mixed $padding = 7 ]) : mixed
Parameters
$filename : mixed
$line : mixed
$padding : mixed = 7
Return values
mixed

getSource()

Gets section of source code.

public static getSource(string $filename[, int $start_line = 1 ][, null|int $length = null ]) : null|array<string|int, mixed>
Parameters
$filename : string

Full path to file

$start_line : int = 1

The first line to display (1 based)

$length : null|int = null

Amount of lines to show

Return values
null|array<string|int, mixed>

labelIsImplicit()

public labelIsImplicit() : mixed
Return values
mixed

setName()

public setName(mixed $name) : mixed
Parameters
$name : mixed
Return values
mixed

Search results