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
$contents
public
mixed
$contents
= array()
$filename
public
mixed
$filename
$hints
public
mixed
$hints
= array('source')
$implicit_label
public
mixed
$implicit_label
= false
$label
public
mixed
$label
$line
public
mixed
$line
= 0
$showfilename
public
mixed
$showfilename
= false
$source
public
mixed
$source
= array()
$name
protected
mixed
$name
Methods
__construct()
public
__construct(mixed $filename, mixed $line[, mixed $padding = 7 ]) : mixed
Parameters
- $filename : mixed
- $line : mixed
- $padding : mixed = 7
Return values
mixed —getLabel()
public
getLabel() : mixed
Return values
mixed —getName()
public
getName() : mixed
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