Пример #1
0
 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();
 }
Пример #2
0
 public function isMainClass() : bool
 {
     return $this->processor->getMainClass($this->reflection->getNamespaceName()) === $this;
 }