Skip to content

Class FileMetrics

Class \Klitsche\Dog\Enrichers\Clover\FileMetrics

Methods

__construct()

public __construct ( 
    int $loc, 
    int $ncloc, 
    int $classes, 
    int $coveredclasses, 
    int $methods, 
    int $coveredmethods, 
    int $conditionals, 
    int $coveredconditionals, 
    int $statements, 
    int $coveredstatements, 
    int $elements, 
    int $coveredelements
 ): 
Parameters
loc int
ncloc int
classes int
coveredclasses int
methods int
coveredmethods int
conditionals int
coveredconditionals int
statements int
coveredstatements int
elements int
coveredelements int

createFromElement()

public static createFromElement ( 
    \SimpleXMLElement $element
 ): self
Parameters
element \SimpleXMLElement
Returns
self

getClasses()

public getClasses (  ): int
Returns
int

getClassesCoverage()

public getClassesCoverage (  ): float
Returns
float

getConditionals()

public getConditionals (  ): int
Returns
int

getCoveredclasses()

public getCoveredclasses (  ): int
Returns
int

getCoveredconditionals()

public getCoveredconditionals (  ): int
Returns
int

getCoveredelements()

public getCoveredelements (  ): int
Returns
int

getCoveredmethods()

public getCoveredmethods (  ): int
Returns
int

getCoveredstatements()

public getCoveredstatements (  ): int
Returns
int

getElements()

public getElements (  ): int
Returns
int

getLinesCoverage()

public getLinesCoverage (  ): float
Returns
float

getLoc()

public getLoc (  ): int
Returns
int

getMethods()

public getMethods (  ): int
Returns
int

getMethodsCoverage()

public getMethodsCoverage (  ): float
Returns
float

getNcloc()

public getNcloc (  ): int
Returns
int

getStatements()

public getStatements (  ): int
Returns
int

Test Coverage 💚

  • 💚 Lines: 100% (41 / 41)
  • 💚 Methods: 100% (17 / 17)

Extended by