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

        foreach ($contents as $titleContent => $content) {
            $this->addTitle($titleContent, $content);
        }

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

        foreach ($contents as $titleContent => $content) {
            $this->addTitle($titleContent, $content);
        }

        return $this;
    }
@param $contents

@return $this