Arcanedev\SeoHelper\Entities\Keywords::set PHP Method

set() public method

Set keywords content.
public set ( array | string $content ) : self
$content array | string
return self
    public function set($content)
    {
        if (is_string($content)) {
            $content = explode(',', $content);
        }
        if (!is_array($content)) {
            $content = (array) $content;
        }
        $this->content = array_map(function ($keyword) {
            return $this->clean($keyword);
        }, $content);
        return $this;
    }