Code Coverage |
||||||||||
Classes and Traits |
Functions and Methods |
Lines |
||||||||
| Total | |
0.00% |
0 / 1 |
|
71.43% |
5 / 7 |
CRAP | |
77.78% |
7 / 9 |
| Parameter | |
0.00% |
0 / 1 |
|
71.43% |
5 / 7 |
7.54 | |
77.78% |
7 / 9 |
| __construct($value) | |
100.00% |
1 / 1 |
1 | |
100.00% |
2 / 2 |
|||
| get() | |
100.00% |
1 / 1 |
1 | |
100.00% |
1 / 1 |
|||
| getValue() | |
100.00% |
1 / 1 |
1 | |
100.00% |
1 / 1 |
|||
| _getStyleString() | |
0.00% |
0 / 1 |
2 | |
0.00% |
0 / 1 |
|||
| __toString() | |
0.00% |
0 / 1 |
2 | |
0.00% |
0 / 1 |
|||
| getName() | |
100.00% |
1 / 1 |
1 | |
100.00% |
2 / 2 |
|||
| getStringValue() | |
100.00% |
1 / 1 |
1 | |
100.00% |
1 / 1 |
|||
| <?php | |
| /** | |
| * | |
| */ | |
| namespace aae\draw { | |
| /** | |
| * @author Axel Ancona Esselmann | |
| * @package aae\draw | |
| */ | |
| abstract class Parameter { | |
| protected static $_name; | |
| protected $_value; | |
| public function __construct($value) { | |
| $this->_value = $value; | |
| } | |
| public function get() { | |
| return $this->_value; | |
| } | |
| public function getValue() { | |
| return $this->_value; | |
| } | |
| protected function _getStyleString() { | |
| return $this->getName()."=\"".$this->get()."\""; | |
| } | |
| public function __toString() { | |
| return $this->_getStyleString(); | |
| } | |
| public function getName() { | |
| $className = get_class($this); | |
| return $className::$_name; | |
| } | |
| public function getStringValue() { | |
| return "\"".$this->get()."\""; | |
| } | |
| } | |
| } |