Library
Class

Library\Reporter\AbstractAdapter

abstract class AbstractAdapter

Reporter Adapters interface

All Reporter adapters must extend this abstract class and defines its abstract methods

Each reporter MUST define all entries of the \Library\Reporter\Reporter::$default_masks array as a class constant:

 const mask_XXX = "<tag>%s</tag>";

Methods

string newLine()

Adapter new line sign

string tab()

Adapter new tabulation

string renderTag(string $content, string $tag_type = 'default')

Render a content with a specific tag mask

Details

at line 48
public string newLine()

Adapter new line sign

Return Value

string

at line 58
public string tab()

Adapter new tabulation

Return Value

string

at line 107
abstract public string renderTag(string $content, string $tag_type = 'default')

Render a content with a specific tag mask

The $tag_type may be one of the \Library\Reporter\Reporter::$default_tag_types array.

Parameters

string $content The content string to use
string $tag_type The type of tag mask to use

Return Value

string Must return the content string built