public function setRightnode($rightnode)
    {
        if (false === Numeric::isPositiveInteger($rightnode)) {
            throw new InvalidArgumentException('A nested node position must be a strictly positive integer.');
        }

        $this->_rightnode = $rightnode;

        return $this;
    }
public function setRightnode($rightnode)
    {
        if (false === Numeric::isPositiveInteger($rightnode)) {
            throw new InvalidArgumentException('A nested node position must be a strictly positive integer.');
        }

        $this->_rightnode = $rightnode;

        return $this;
    }
public function setRightnode ( $ rightnode ) { if ( false === Numeric :: isPositiveInteger ( $ rightnode ) ) { throw new InvalidArgumentException ( 'A nested node position must be a strictly positive integer.' ) ; } $ this -> _rightnode = $ rightnode ; return $ this ; }
Sets the right position.

@param  int                                         $rightnode
@return \BackBee\NestedNode\AbstractNestedNode
@throws \BackBee\Exception\InvalidArgumentException Occurs if the value can not be cast to positive integer
Sets the right position .