'object-statistics']; abstract protected function createDonut(): ValidHtml; abstract protected function createTotal(): ValidHtml; abstract protected function createBadges(): ValidHtml; protected function assemble() { $this->add([ Html::tag('li', ['class' => 'object-statistics-graph'], $this->createDonut()), Html::tag('li', ['class' => ['object-statistics-total', 'text-center']], $this->createTotal()), Html::tag('li', $this->createBadges()) ]); } }