Class Config¶
Class \Klitsche\Dog\Config
- implements \Klitsche\Dog\ConfigInterface
 
Methods¶
__construct()¶
public __construct ( 
    array $parameters, 
    string $workingDir
 ): 
- Parameters
 - parameters 
array - workingDir 
string 
fromYamlFile()¶
public static fromYamlFile ( 
    string $file, 
    string $workingDir
 ): self
- Parameters
 - file 
string - workingDir 
string - Returns
 self
getCacheDir()¶
public getCacheDir (  ): string
- Returns
 string
getEnrichers()¶
public getEnrichers (  ): array
- Returns
 array
getOutputDir()¶
public getOutputDir (  ): string
- Returns
 stringAbsolute path to the output directory. Usually used by the Printer.
getPrinterClass()¶
public getPrinterClass (  ): string
- Returns
 stringFull qualified class namespace of the used Printer
getPrinterConfig()¶
public getPrinterConfig (  ): array
- Returns
 arrayGeneric assoc array [key => value, …]. Optionally used by the Printer.
getRules()¶
public getRules (  ): array
- Returns
 arrayConfiguration map [Rule Class => issue Level, …]
getSrcPaths()¶
public getSrcPaths (  ): array
Get a list of absolute paths to a source directory mapped to a list of matching (true) or not matching (false) patterns (regexp or string)
- Returns
 arrayMap of[baseDirectory => [ regexOrStringPattern => true (include) or false (exclude), ... ]]
See also
getTitle()¶
public getTitle (  ): string
- Returns
 stringTitle of your project
getWorkingDir()¶
public getWorkingDir (  ): string
- Returns
 stringPath to the current working directory
isDebugEnabled()¶
public isDebugEnabled (  ): bool
- Returns
 boolWhether debug is enabled or not. Usually useful when tweaking twig templates to throw errors.
Test Coverage 💚¶
- 💚 Lines: 100% (35 / 35)
 - 💚 Methods: 100% (12 / 12)