Skip to content

Class ClassMetrics

Class \Klitsche\Dog\Enrichers\Clover\ClassMetrics

Methods

__construct()

public __construct ( 
    int $complexity, 
    int $methods, 
    int $coveredmethods, 
    int $conditionals, 
    int $coveredconditionals, 
    int $statements, 
    int $coveredstatements, 
    int $elements, 
    int $coveredelements
 ): 
Parameters
complexity 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

getComplexity()

public getComplexity (  ): int
Returns
int

getConditionals()

public getConditionals (  ): 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

getMethods()

public getMethods (  ): int
Returns
int

getMethodsCoverage()

public getMethodsCoverage (  ): float
Returns
float

getStatements()

public getStatements (  ): int
Returns
int

Test Coverage 💚

  • 💚 Lines: 100% (31 / 31)
  • 💚 Methods: 100% (13 / 13)