PHP Class Swift_Plugins_Loggers_ArrayLogger, Halite

Author: Chris Corbyn
Inheritance: implements Swift_Plugins_Logger
Afficher le fichier Open project: HaliteChallenge/Halite Class Usage Examples

Méthodes publiques

Méthode Description
__construct ( $size = 50 ) Create a new ArrayLogger with a maximum of $size entries.
add ( string $entry ) Add a log entry.
clear ( ) Clear the log contents.
dump ( ) : string Get this log as a string.

Method Details

__construct() public méthode

Create a new ArrayLogger with a maximum of $size entries.
public __construct ( $size = 50 )

add() public méthode

Add a log entry.
public add ( string $entry )
$entry string

clear() public méthode

Clear the log contents.
public clear ( )

dump() public méthode

Get this log as a string.
public dump ( ) : string
Résultat string