Code Coverage
 
Classes and Traits
Functions and Methods
Lines
Total
100.00% covered (success)
100.00%
1 / 1
100.00% covered (success)
100.00%
1 / 1
CRAP
100.00% covered (success)
100.00%
4 / 4
ImplVertex
100.00% covered (success)
100.00%
1 / 1
100.00% covered (success)
100.00%
1 / 1
1
100.00% covered (success)
100.00%
4 / 4
 getSpecific()
100.00% covered (success)
100.00%
1 / 1
1
100.00% covered (success)
100.00%
4 / 4
<?php
/*
 * Mondrian
 */
namespace Trismegiste\Mondrian\Transform\Vertex;
/**
 * ImplVertex is a vertex for an implementation
 * (content of a method)
 */
class ImplVertex extends StaticAnalysis
{
    protected function getSpecific()
    {
        preg_match('#([^\\\\]+)::([^:]+)$#', $this->name, $capt);
        $default = array('shape' => 'rectangle', 'style' => 'filled', 'color' => 'grey',
            'label' => $capt[1] . self::LABEL_DELIMITER . $capt[2]);
        return $default;
    }
}