public function render(array $groups) : string { $itemGroups = $this->processor->getGroups(); $this->items = []; foreach ($groups as $name => $data) { $shiftAngle = $data['shiftAngle'] ?? 0; $this->placeItems($itemGroups[$name], $data['x'], $data['y'], $shiftAngle + 0, $shiftAngle + 360); } return $this->renderGroups($groups) . $this->renderLines() . $this->renderItems(); }
public function isMainClass() : bool { return $this->processor->getMainClass($this->reflection->getNamespaceName()) === $this; }