| Total Complexity | 7 | 
| Total Lines | 52 | 
| Duplicated Lines | 0 % | 
| Changes | 1 | ||
| Bugs | 0 | Features | 0 | 
| 1 | <?php | ||
| 14 | class Edge extends \phpDocumentor\GraphViz\Edge | ||
| 15 | { | ||
| 16 | protected $fromPort = null; | ||
| 17 | |||
| 18 | protected $toPort = null; | ||
| 19 | |||
| 20 | /** | ||
| 21 | * @param Node $from | ||
| 22 | * @param Node $to | ||
| 23 | * @return Edge|\phpDocumentor\GraphViz\Edge | ||
| 24 | */ | ||
| 25 |     public static function create(Node $from, Node $to) { | ||
| 26 | return new static($from, $to); | ||
| 27 | } | ||
| 28 | |||
| 29 | /** | ||
| 30 | * @param null $fromPort | ||
|  | |||
| 31 | */ | ||
| 32 | public function setFromPort($fromPort): void | ||
| 35 | } | ||
| 36 | |||
| 37 | /** | ||
| 38 | * @param null $toPort | ||
| 39 | */ | ||
| 40 | public function setToPort($toPort): void | ||
| 41 |     { | ||
| 42 | $this->toPort = $toPort; | ||
| 43 | } | ||
| 44 | |||
| 45 | /** | ||
| 46 | * Returns the edge definition as is requested by GraphViz. | ||
| 47 | * | ||
| 48 | * @return string | ||
| 49 | */ | ||
| 50 | public function __toString() | ||
| 66 | ] | ||
| 67 | DOT; | ||
| 69 | } |