models/Extension.php
public function setHeadwords($headwords)
    {
        $results = [];
        foreach ($headwords as $headword) {
            $results[] = $this->setHeadword($headword);
        }
        return $results;
    }
public function setHeadwords($headwords)
    {
        $results = [];
        foreach ($headwords as $headword) {
            $results[] = $this->setHeadword($headword);
        }
        return $results;
    }
public function setHeadwords ( $ headwords ) { $ results = [ ] ; foreach ( $ headwords as $ headword ) { $ results [ ] = $ this -> setHeadword ( $ headword ) ; } return $ results ; }
Add headwords.
@param string[]|Headword[] $headwords
@return mixed
Add headwords .