src/Node/Node.php
public function setId(string $id): NodeInterface
    {
        $this->_id = $id;

        if ($this->_name === null) {
            $this->setName($id);
        }

        return $this;
    }
public function setId(string $id): NodeInterface
    {
        $this->_id = $id;

        if ($this->_name === null) {
            $this->setName($id);
        }

        return $this;
    }
public function setId ( string $ id ) : NodeInterface { $ this -> _id = $ id ; if ( $ this -> _name === null ) { $ this -> setName ( $ id ) ; } return $ this ; }
Sets the value of field id.

@param string $id - id.

@return NodeInterface
Sets the value of field id .