DataTables PHP 3.0.2

Config
in package
implements ConfigInterface, ParallelAwareConfigInterface, UnsupportedPhpVersionAllowedConfigInterface, CustomRulesetsAwareConfigInterface, RuleCustomisationPolicyAwareConfigInterface

Tags
author

Fabien Potencier fabien@symfony.com

author

Katsuhiro Ogawa ko.fivestar@gmail.com

author

Dariusz Rumiński dariusz.ruminski@gmail.com

no-named-arguments

Parameter names are not covered by the backward compatibility promise.

api-extendable

Table of Contents

Interfaces

ConfigInterface
ParallelAwareConfigInterface
UnsupportedPhpVersionAllowedConfigInterface
CustomRulesetsAwareConfigInterface
RuleCustomisationPolicyAwareConfigInterface
EXPERIMENTAL: This feature is experimental and does not fall under the backward compatibility promise.

Methods

__construct()  : mixed
getCacheFile()  : non-empty-string
Returns the path to the cache file.
getCustomFixers()  : array<int, FixerInterface>
Returns the custom fixers to use.
getCustomRuleSets()  : array<int, RuleSetDefinitionInterface>
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.
getParallelConfig()  : ParallelConfig
getPhpExecutable()  : string|null
Get configured PHP executable, if any.
getRiskyAllowed()  : bool
Check if it is allowed to run risky fixers.
getRuleCustomisationPolicy()  : RuleCustomisationPolicyInterface|null
EXPERIMENTAL: This feature is experimental and does not fall under the backward compatibility promise.
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.
registerCustomRuleSets()  : $this
Registers custom rule sets to be used the same way as built-in rule sets.
setCacheFile()  : $this
Sets the path to the cache file.
setFinder()  : $this
setFormat()  : $this
setHideProgress()  : $this
setIndent()  : $this
setLineEnding()  : $this
setParallelConfig()  : $this
setPhpExecutable()  : $this
Set PHP executable.
setRiskyAllowed()  : $this
Set if it is allowed to run risky fixers.
setRuleCustomisationPolicy()  : $this
EXPERIMENTAL: This feature is experimental and does not fall under the backward compatibility promise.
setRules()  : $this
Set rules.
setUnsupportedPhpVersionAllowed()  : $this
setUsingCache()  : $this

Methods

__construct()

public __construct([string $name = 'default' ]) : mixed
Parameters
$name : string = 'default'

getCacheFile()

Returns the path to the cache file.

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

getFinder()

Returns files to scan.

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

getFormat()

public getFormat() : string
Return values
string

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
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, mixed> $fixers) : $this

Name of custom fixer should follow VendorName/rule_name convention.

Parameters
$fixers : iterable<string|int, mixed>
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, mixed> $finder) : $this
Parameters
$finder : iterable<string|int, mixed>
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
Return values
$this

setRiskyAllowed()

Set if it is allowed to run risky fixers.

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

setRuleCustomisationPolicy()

EXPERIMENTAL: This feature is experimental and does not fall under the backward compatibility promise.

public setRuleCustomisationPolicy(RuleCustomisationPolicyInterface|null $ruleCustomisationPolicy) : $this

Registers a filter to be applied to fixers right before running them.

Parameters
$ruleCustomisationPolicy : RuleCustomisationPolicyInterface|null
Return values
$this

setRules()

Set rules.

public setRules(array<string|int, mixed> $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|int, mixed>
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