Skip to content

Class MethodMetrics

Class \Klitsche\Dog\Enrichers\Clover\MethodMetrics

Methods

__construct()

public __construct ( 
    int $complexity, 
    int $crap, 
    int $count
 ): 
Parameters
complexity int
crap int
count int

createFromElement()

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

getComplexity()

public getComplexity (  ): int
Returns
int

getCount()

public getCount (  ): int
Returns
int

getCrap()

public getCrap (  ): int
Returns
int

Test Coverage 💚

  • 💚 Lines: 100% (11 / 11)
  • 💚 Methods: 100% (5 / 5)