FeedWriter\Feed::setChannelAbout PHP Method

setChannelAbout() public method

Set the channel 'rdf:about' attribute, which is used in RSS1 feeds only.
public setChannelAbout ( string $url ) : self
$url string value of 'rdf:about' attribute of the channel element
return self
    public function setChannelAbout($url)
    {
        if ($this->version != Feed::RSS1) {
            throw new InvalidOperationException("This method is only supported in RSS1 feeds.");
        }
        if (empty($url)) {
            throw new \InvalidArgumentException('The about URL may not be empty or NULL.');
        }
        if (!is_string($url)) {
            throw new \InvalidArgumentException('The about URL must be a string.');
        }
        $this->data['ChannelAbout'] = $url;
        return $this;
    }