PHP Class Hal\Application\Formater\Details\Cli

Inheritance: implements Hal\Application\Formater\FormaterInterface
Datei anzeigen Open project: halleck45/phpmetrics Class Usage Examples

Public Methods

Method Description
__construct ( Hal\Application\Rule\Validator $validator, Hal\Component\Bounds\BoundsInterface $bound, Hal\Application\Extension\ExtensionService $extensionService ) Constructor
getName ( )
terminate ( Hal\Component\Result\ResultCollection $collection, Hal\Component\Result\ResultCollection $groupedResults )

Private Methods

Method Description
formatTime ( null | double $duration ) : string Format duration in seconds into text representation
getRow ( Hal\Component\Bounds\Result\ResultInterface $bound, string $key, string $type, integer $round ) : string Get formated row
getStyle ( string $key, double $value ) : string Get style, according score

Method Details

__construct() public method

Constructor
public __construct ( Hal\Application\Rule\Validator $validator, Hal\Component\Bounds\BoundsInterface $bound, Hal\Application\Extension\ExtensionService $extensionService )
$validator Hal\Application\Rule\Validator
$bound Hal\Component\Bounds\BoundsInterface
$extensionService Hal\Application\Extension\ExtensionService

getName() public method

public getName ( )

terminate() public method

public terminate ( Hal\Component\Result\ResultCollection $collection, Hal\Component\Result\ResultCollection $groupedResults )
$collection Hal\Component\Result\ResultCollection
$groupedResults Hal\Component\Result\ResultCollection