src/Accordion/AccordionView.php
public function setTitles(array $titles)
    {
        $this->titles = [];

        foreach ($titles as $titleKey => $title) {
            $this->addTitle($titleKey, $title);
        }

        return $this;
    }
public function setTitles(array $titles)
    {
        $this->titles = [];

        foreach ($titles as $titleKey => $title) {
            $this->addTitle($titleKey, $title);
        }

        return $this;
    }
@param $titles

@return $this