public function removeNode(RiakNode $node)
    {
        $index  = array_search($node, $this->nodes);
        $result = isset($this->nodes[$index]) ? $this->nodes[$index] : null;

        if ($result === null) {
            return;
        }

        unset($this->nodes[$index]);

        return $result;
    }
public function removeNode(RiakNode $node)
    {
        $index  = array_search($node, $this->nodes);
        $result = isset($this->nodes[$index]) ? $this->nodes[$index] : null;

        if ($result === null) {
            return;
        }

        unset($this->nodes[$index]);

        return $result;
    }
public function removeNode ( RiakNode $ node ) { $ index = array_search ( $ node , $ this -> nodes ) ; $ result = isset ( $ this -> nodes [ $ index ] ) ? $ this -> nodes [ $ index ] : null ; if ( $ result === null ) { return ; } unset ( $ this -> nodes [ $ index ] ) ; return $ result ; }
Removes the provided node from the cluster.

@param \Riak\Client\Core\RiakNode $node

@return \Riak\Client\Core\RiakNode|null
Removes the provided node from the cluster .