public function withAddedKeywords(array $keywords = []) : self
    {
        $existing = array_map('trim', explode(',', $this->getAttribute('content') ?: ''));
        $new = array_merge($existing, $keywords);

        return $this->withAttribute('content', implode(', ', $new));
    }
public function withAddedKeywords(array $keywords = []) : self
    {
        $existing = array_map('trim', explode(',', $this->getAttribute('content') ?: ''));
        $new = array_merge($existing, $keywords);

        return $this->withAttribute('content', implode(', ', $new));
    }
public function withAddedKeywords ( array $ keywords = [ ] ) : self { $ existing = array_map ( 'trim' , explode ( ',' , $ this -> getAttribute ( 'content' ) ? : '' ) ) ; $ new = array_merge ( $ existing , $ keywords ) ; return $ this -> withAttribute ( 'content' , implode ( ', ' , $ new ) ) ; }
Returns a new element with the specified keywords added.

@param array $keywords
An indexed array of keyword strings to add to this meta element.
@return static
A new KeywordsMetaElement instance with the provided keywords added.
Returns a new element with the specified keywords added .