public function setName($value)
    {
        $element = $this->query('atom:name', self::SINGLE);
        if (null === $element) {
            $element = $this->getDomElement()->ownerDocument->createElementNS($this->ns(), 'name');
            $this->getDomElement()->appendChild($element);
        }
        $element->nodeValue = $value;
        $this->setCachedProperty('name', $value);

        return $this;
    }
public function setName($value)
    {
        $element = $this->query('atom:name', self::SINGLE);
        if (null === $element) {
            $element = $this->getDomElement()->ownerDocument->createElementNS($this->ns(), 'name');
            $this->getDomElement()->appendChild($element);
        }
        $element->nodeValue = $value;
        $this->setCachedProperty('name', $value);

        return $this;
    }
public function setName ( $ value ) { $ element = $ this -> query ( 'atom:name' , self :: SINGLE ) ; if ( null === $ element ) { $ element = $ this -> getDomElement ( ) -> ownerDocument -> createElementNS ( $ this -> ns ( ) , 'name' ) ; $ this -> getDomElement ( ) -> appendChild ( $ element ) ; } $ element -> nodeValue = $ value ; $ this -> setCachedProperty ( 'name' , $ value ) ; return $ this ; }
Set person name.

@param string $value

@return $this

@since 1.0
@link  https://tools.ietf.org/html/rfc4287#section-3.2.1
Set person name .