lib/Aegis/Node.php
public function getChild(int $index) : Node
    {
        if (!isset($this->children[$index])) {
            throw new AegisError('Could not get child from node, because there\'s no child at index '.$i);
        }

        return $this->children[$index];
    }
public function getChild(int $index) : Node
    {
        if (!isset($this->children[$index])) {
            throw new AegisError('Could not get child from node, because there\'s no child at index '.$i);
        }

        return $this->children[$index];
    }
public function getChild ( int $ index ) : Node { if ( ! isset ( $ this -> children [ $ index ] ) ) { throw new AegisError ( 'Could not get child from node, because there\'s no child at index ' . $ i ) ; } return $ this -> children [ $ index ] ; }
Gets the child at the given index

@param int $index
@return Node
@throws AegisError
Gets the child at the given index