File_Therion_Formatters
[ class tree: File_Therion_Formatters ] [ index: File_Therion_Formatters ] [ all elements ]

Class: File_Therion_AddLineNumberFormatter

Source Location: /File_Therion-0.4.1/File/Therion/Formatters/FormatterInterface.php

Class Overview


A simple debug formatter, just for testing purposes and example.


Variables

Methods


Inherited Variables

Inherited Methods


Class Details

[line 53]
A simple debug formatter, just for testing purposes and example.

It prepends every line with a line number.



[ Top ]


Class Variables

$offset =  0

[line 60]

initial offset for line numbers
  • Access: protected

Type:   int


[ Top ]

$pad =  0

[line 67]

minimum length of line number
  • Access: protected

Type:   int


[ Top ]



Method Detail

__construct (Constructor)   [line 74]

File_Therion_AddLineNumberFormatter __construct( [int $pad = 0], [int $offset = 0])

Constuct a new AddLineNumberFormatter with given offset.
  • Access: public

Parameters:

int   $pad   —  minimal width of line numbers
int   $offset   —  to start with

[ Top ]

format   [line 86]

array format( array $lines)

Add a line number.
  • Access: public

Parameters:

array   $lines   — 

[ Top ]


Documentation generated on Mon, 11 Mar 2019 15:09:45 -0400 by phpDocumentor 1.4.4. PEAR Logo Copyright © PHP Group 2004.