public function addRights($value, $type = 'text')
    {
        /** @var Rights $element */
        $element = $this->addChild('atom:rights', 'rights');
        $element->setContent($value, $type);

        return $element;
    }
public function addRights($value, $type = 'text')
    {
        /** @var Rights $element */
        $element = $this->addChild('atom:rights', 'rights');
        $element->setContent($value, $type);

        return $element;
    }
public function addRights ( $ value , $ type = 'text' ) { /** @var Rights $element */ $ element = $ this -> addChild ( 'atom:rights' , 'rights' ) ; $ element -> setContent ( $ value , $ type ) ; return $ element ; }
Add rights.

@param string $value
@param string $type

@return Rights

@since 1.0
Add rights .