src/Taxonomy/Taxonomy.php
public function setLabels(array $labels): TaxonomyInterface
    {
        if (isset($this->args['labels'])) {
            $this->args['labels'] = array_merge($this->args['labels'], $labels);
        } else {
            $this->args['labels'] = $labels;
        }

        return $this;
    }
public function setLabels(array $labels): TaxonomyInterface
    {
        if (isset($this->args['labels'])) {
            $this->args['labels'] = array_merge($this->args['labels'], $labels);
        } else {
            $this->args['labels'] = $labels;
        }

        return $this;
    }
public function setLabels ( array $ labels ) : TaxonomyInterface { if ( isset ( $ this -> args [ 'labels' ] ) ) { $ this -> args [ 'labels' ] = array_merge ( $ this -> args [ 'labels' ] , $ labels ) ; } else { $ this -> args [ 'labels' ] = $ labels ; } return $ this ; }
Set taxonomy labels.

@param array $labels

@return TaxonomyInterface
Set taxonomy labels .