lib/PHPPdf/Core/Node/Node.php
public function getChild($index)
    {
        $children = $this->getChildren();
        
        if(!isset($children[$index]))
        {
            throw new OutOfBoundsException(sprintf('Child "%s" dosn\'t exist.', $index));
        }

        return $children[$index];
    }
public function getChild($index)
    {
        $children = $this->getChildren();
        
        if(!isset($children[$index]))
        {
            throw new OutOfBoundsException(sprintf('Child "%s" dosn\'t exist.', $index));
        }

        return $children[$index];
    }
public function getChild ( $ index ) { $ children = $ this -> getChildren ( ) ; if ( ! isset ( $ children [ $ index ] ) ) { throw new OutOfBoundsException ( sprintf ( 'Child "%s" dosn\'t exist.' , $ index ) ) ; } return $ children [ $ index ] ; }
Gets child under passed index

@param integer Index of child

@return Node
@throws OutOfBoundsException Child dosn't exist
Gets child under passed index