DataTables PHP 3.0.2

UnsupportedPhpVersionAllowedConfigInterface extends ConfigInterface

Tags
TODO

4.0 Include in main ConfigInterface

no-named-arguments

Parameter names are not covered by the backward compatibility promise.

Table of Contents

Methods

getCacheFile()  : null|non-empty-string
Returns the path to the cache file.
getCustomFixers()  : array<int, FixerInterface>
Returns the custom fixers to use.
getFinder()  : iterable<string|int, SplFileInfo>
Returns files to scan.
getFormat()  : string
getHideProgress()  : bool
Returns true if progress should be hidden.
getIndent()  : non-empty-string
getLineEnding()  : non-empty-string
getName()  : string
Returns the name of the configuration.
getPhpExecutable()  : string|null
Get configured PHP executable, if any.
getRiskyAllowed()  : bool
Check if it is allowed to run risky fixers.
getRules()  : array<string, array<string, mixed>|bool>
Get rules.
getUnsupportedPhpVersionAllowed()  : bool
Returns true if execution should be allowed on unsupported PHP version whose syntax is not yet supported by the fixer.
getUsingCache()  : bool
Returns true if caching should be enabled.
registerCustomFixers()  : $this
Adds a suite of custom fixers.
setCacheFile()  : $this
Sets the path to the cache file.
setFinder()  : $this
setFormat()  : $this
setHideProgress()  : $this
setIndent()  : $this
setLineEnding()  : $this
setPhpExecutable()  : $this
Set PHP executable.
setRiskyAllowed()  : $this
Set if it is allowed to run risky fixers.
setRules()  : $this
Set rules.
setUnsupportedPhpVersionAllowed()  : $this
setUsingCache()  : $this

Methods

getCacheFile()

Returns the path to the cache file.

public getCacheFile() : null|non-empty-string
Return values
null|non-empty-string

Returns null if not using cache

getFinder()

Returns files to scan.

public getFinder() : iterable<string|int, SplFileInfo>
Return values
iterable<string|int, SplFileInfo>

getHideProgress()

Returns true if progress should be hidden.

public getHideProgress() : bool
Return values
bool

getIndent()

public getIndent() : non-empty-string
Return values
non-empty-string

getLineEnding()

public getLineEnding() : non-empty-string
Return values
non-empty-string

getName()

Returns the name of the configuration.

public getName() : string

The name must be all lowercase and without any spaces.

Return values
string

The name of the configuration

getPhpExecutable()

Get configured PHP executable, if any.

public getPhpExecutable() : string|null
Tags
TODO

4.0 remove me

Return values
string|null

getRiskyAllowed()

Check if it is allowed to run risky fixers.

public getRiskyAllowed() : bool
Return values
bool

getRules()

Get rules.

public getRules() : array<string, array<string, mixed>|bool>

Keys of array are names of fixers/sets, values are true/false.

Return values
array<string, array<string, mixed>|bool>

getUnsupportedPhpVersionAllowed()

Returns true if execution should be allowed on unsupported PHP version whose syntax is not yet supported by the fixer.

public getUnsupportedPhpVersionAllowed() : bool
Return values
bool

getUsingCache()

Returns true if caching should be enabled.

public getUsingCache() : bool
Return values
bool

registerCustomFixers()

Adds a suite of custom fixers.

public registerCustomFixers(iterable<string|int, FixerInterface$fixers) : $this

Name of custom fixer should follow VendorName/rule_name convention.

Parameters
$fixers : iterable<string|int, FixerInterface>
Return values
$this

setCacheFile()

Sets the path to the cache file.

public setCacheFile(non-empty-string $cacheFile) : $this
Parameters
$cacheFile : non-empty-string
Return values
$this

setFinder()

public setFinder(iterable<string|int, SplFileInfo$finder) : $this
Parameters
$finder : iterable<string|int, SplFileInfo>
Return values
$this

setFormat()

public setFormat(string $format) : $this
Parameters
$format : string
Return values
$this

setHideProgress()

public setHideProgress(bool $hideProgress) : $this
Parameters
$hideProgress : bool
Return values
$this

setIndent()

public setIndent(non-empty-string $indent) : $this
Parameters
$indent : non-empty-string
Return values
$this

setLineEnding()

public setLineEnding(non-empty-string $lineEnding) : $this
Parameters
$lineEnding : non-empty-string
Return values
$this

setPhpExecutable()

Set PHP executable.

public setPhpExecutable(string|null $phpExecutable) : $this
Parameters
$phpExecutable : string|null
Tags
TODO

4.0 remove me

Return values
$this

setRiskyAllowed()

Set if it is allowed to run risky fixers.

public setRiskyAllowed(bool $isRiskyAllowed) : $this
Parameters
$isRiskyAllowed : bool
Return values
$this

setRules()

Set rules.

public setRules(array<string, array<string, mixed>|bool> $rules) : $this

Keys of array are names of fixers or sets. Value for set must be bool (turn it on or off). Value for fixer may be bool (turn it on or off) or array of configuration (turn it on and contains configuration for FixerInterface::configure method).

Parameters
$rules : array<string, array<string, mixed>|bool>
Return values
$this

setUnsupportedPhpVersionAllowed()

public setUnsupportedPhpVersionAllowed(bool $isUnsupportedPhpVersionAllowed) : $this
Parameters
$isUnsupportedPhpVersionAllowed : bool
Return values
$this

setUsingCache()

public setUsingCache(bool $usingCache) : $this
Parameters
$usingCache : bool
Return values
$this

        
On this page

Search results