Code Coverage |
||||||||||
Classes and Traits |
Functions and Methods |
Lines |
||||||||
Total | |
100.00% |
1 / 1 |
|
100.00% |
2 / 2 |
CRAP | |
100.00% |
3 / 3 |
UnitParameter | |
100.00% |
1 / 1 |
|
100.00% |
2 / 2 |
2 | |
100.00% |
3 / 3 |
get() | |
100.00% |
1 / 1 |
1 | |
100.00% |
1 / 1 |
|||
setUnit($unitString) | |
100.00% |
1 / 1 |
1 | |
100.00% |
2 / 2 |
<?php | |
/** | |
* | |
*/ | |
namespace aae\draw { | |
/** | |
* @author Axel Ancona Esselmann | |
* @package aae\draw | |
*/ | |
abstract class UnitParameter extends Parameter { | |
protected static $_valueAppend = "px"; | |
public function get() { | |
return $this->_value.UnitParameter::$_valueAppend; | |
} | |
public static function setUnit($unitString) { | |
UnitParameter::$_valueAppend = $unitString; | |
} | |
} | |
} |