Merge branch 'develop'

This commit is contained in:
Simon Vieille 2024-05-17 21:38:50 +02:00
commit bc7e8ef263

View file

@ -6,11 +6,20 @@ class BuilderBlockContainer
{
protected array $widgets = [];
public function addWidget(BuilderBlock $widget): void
public function addWidget(BuilderBlock $widget): self
{
$widget->configure();
$this->widgets[$widget->getName()] = $widget;
return $this;
}
public function removeWidget(string $name)
{
unset($this->widgets[$name]);
return $this;
}
public function getWidgets(): array