public function getKey($index = 0) {
    $keys = $this->getKeys();

    if (!is_integer($index)) {
      throw new \InvalidArgumentException();
    }
    if ($index < 0 || $index >= count($keys)) {
      throw new \OutOfBoundsException();
    }
    return $keys[$index];
  }
public function getKey($index = 0) {
    $keys = $this->getKeys();

    if (!is_integer($index)) {
      throw new \InvalidArgumentException();
    }
    if ($index < 0 || $index >= count($keys)) {
      throw new \OutOfBoundsException();
    }
    return $keys[$index];
  }
public function getKey ( $ index = 0 ) { $ keys = $ this -> getKeys ( ) ; if ( ! is_integer ( $ index ) ) { throw new \ InvalidArgumentException ( ) ; } if ( $ index < 0 || $ index >= count ( $ keys ) ) { throw new \ OutOfBoundsException ( ) ; } return $ keys [ $ index ] ; }
Returns a specific key in the lookup.

@param integer $index
The index of the key to return.

@return \Pharborist\Node

@throws
\InvalidArgumentException if $index is not an integer.
\OutOfBoundsException if $index is less than zero or greater than the
number of keys in the lookup.
Returns a specific key in the lookup .