| Conditions | 4 |
| Paths | 5 |
| Total Lines | 13 |
| Code Lines | 8 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 62 | public function getAdjacents() |
||
| 63 | { |
||
| 64 | $adjacents = []; |
||
| 65 | foreach ($this->edges as $edge) { |
||
| 66 | if ($edge->getFrom()->getKey() != $this->getKey()) { |
||
| 67 | $adjacents[$edge->getFrom()->getKey()] = $edge->getFrom(); |
||
| 68 | } |
||
| 69 | if ($edge->getTo()->getKey() != $this->getKey()) { |
||
| 70 | $adjacents[$edge->getTo()->getKey()] = $edge->getTo(); |
||
| 71 | } |
||
| 72 | } |
||
| 73 | return $adjacents; |
||
| 74 | } |
||
| 75 | |||
| 120 |