OutputFormat
in package
Extending this class is deprecated in version 8.8.0; it will be made `final` in version 9.0.0.
Table of Contents
- $iIndentationLevel : int
- $oFormatter : OutputFormatter|null
- $oNextLevelFormat : OutputFormat|null
- __call() : mixed
- beLenient() : void
- create() : self
- Creates an instance of this class without any particular formatting settings.
- createCompact() : self
- Creates an instance of this class with a preset for compact formatting.
- createPretty() : self
- Creates an instance of this class with a preset for pretty formatting.
- get() : string|null
- indentWithSpaces() : self
- indentWithTabs() : self
- level() : int
- set() : self|false
- setSemicolonAfterLastRule() :
Properties
$iIndentationLevel
private
int
$iIndentationLevel
= 0
$oFormatter
private
OutputFormatter|null
$oFormatter
= null
$oNextLevelFormat
private
OutputFormat|null
$oNextLevelFormat
= null
Methods
__call()
public
__call(string $sMethodName, array<array-key, mixed> $aArguments) : mixed
Parameters
- $sMethodName : string
- $aArguments : array<array-key, mixed>
Tags
Return values
mixed —beLenient()
public
beLenient() : void
Return values
void —create()
Creates an instance of this class without any particular formatting settings.
public
static create() : self
Return values
self —createCompact()
Creates an instance of this class with a preset for compact formatting.
public
static createCompact() : self
Return values
self —createPretty()
Creates an instance of this class with a preset for pretty formatting.
public
static createPretty() : self
Return values
self —get()
public
get(string $sName) : string|null
Parameters
- $sName : string
Tags
Return values
string|null —indentWithSpaces()
public
indentWithSpaces([int $iNumber = 2 ]) : self
Parameters
- $iNumber : int = 2
Return values
self —indentWithTabs()
public
indentWithTabs([int $iNumber = 1 ]) : self
Parameters
- $iNumber : int = 1
Return values
self —level()
public
level() : int
Tags
Return values
int —set()
public
set(array<array-key, string>|string $aNames, mixed $mValue) : self|false
Parameters
- $aNames : array<array-key, string>|string
- $mValue : mixed
Tags
Return values
self|false —setSemicolonAfterLastRule()
public
setSemicolonAfterLastRule(bool $bSemicolonAfterLastRule) :
Set whether semicolons are added after last rule.
Parameters
- $bSemicolonAfterLastRule : bool
