Code Coverage |
||||||||||
Classes and Traits |
Functions and Methods |
Lines |
||||||||
Total | |
100.00% |
1 / 1 |
|
100.00% |
3 / 3 |
CRAP | |
100.00% |
7 / 7 |
TotalDistance | |
100.00% |
1 / 1 |
|
100.00% |
3 / 3 |
3 | |
100.00% |
7 / 7 |
initialize() | |
100.00% |
1 / 1 |
1 | |
100.00% |
1 / 1 |
|||
execute() | |
100.00% |
1 / 1 |
1 | |
100.00% |
5 / 5 |
|||
finalize() | |
100.00% |
1 / 1 |
1 | |
100.00% |
1 / 1 |
<?php | |
/** | |
* | |
*/ | |
namespace aae\geo\meta { | |
/** | |
* @author Axel Ancona Esselmann | |
* @package aae\geo\meta | |
*/ | |
class TotalDistance { | |
public $varName = "totalDistance"; | |
public $metaDataObject = null; | |
public function initialize() { | |
} | |
public function execute() { | |
$meta = $this->metaDataObject; | |
$var = $this->varName; | |
$distance = $meta->segmentDistances[count($meta->segmentDistances) - 1]; | |
$meta->$var += $distance; | |
} | |
public function finalize() { | |
} | |
} | |
} |