Code Coverage |
||||||||||
Classes and Traits |
Functions and Methods |
Lines |
||||||||
Total | |
100.00% |
1 / 1 |
|
100.00% |
1 / 1 |
CRAP | |
100.00% |
4 / 4 |
ParamVertex | |
100.00% |
1 / 1 |
|
100.00% |
1 / 1 |
1 | |
100.00% |
4 / 4 |
getSpecific() | |
100.00% |
1 / 1 |
1 | |
100.00% |
4 / 4 |
<?php | |
/* | |
* Mondrian | |
*/ | |
namespace Trismegiste\Mondrian\Transform\Vertex; | |
/** | |
* ParamVertex is a vertex for an parameter of a method | |
*/ | |
class ParamVertex extends StaticAnalysis | |
{ | |
protected function getSpecific() | |
{ | |
preg_match('#([^/]+)$#', $this->name, $capt); | |
$default = array('shape' => 'diamond', | |
'style' => 'filled', 'color' => 'cyan', 'label' => $capt[1]); | |
return $default; | |
} | |
} |