Section.php
public function getContent($index = null, $raw = false)
    {
        if (null === $index) {
            return (bool)$raw ? $this->cbuff : join('', $this->cbuff);
        }

        if (isset($this->cbuff[(int)$index])) {
            return $this->cbuff[(int)$index];
        }

        throw new \OutOfBoundsException(sprintf('No content at buffer %d or empty buffer.', (int)$index));
    }
public function getContent($index = null, $raw = false)
    {
        if (null === $index) {
            return (bool)$raw ? $this->cbuff : join('', $this->cbuff);
        }

        if (isset($this->cbuff[(int)$index])) {
            return $this->cbuff[(int)$index];
        }

        throw new \OutOfBoundsException(sprintf('No content at buffer %d or empty buffer.', (int)$index));
    }
public function getContent ( $ index = null , $ raw = false ) { if ( null === $ index ) { return ( bool ) $ raw ? $ this -> cbuff : join ( '' , $ this -> cbuff ) ; } if ( isset ( $ this -> cbuff [ ( int ) $ index ] ) ) { return $ this -> cbuff [ ( int ) $ index ] ; } throw new \ OutOfBoundsException ( sprintf ( 'No content at buffer %d or empty buffer.' , ( int ) $ index ) ) ; }
Get the contents.

@param int|null $index
@param boolean $raw

@throws \OutOfBoundsException if the given indenx is invalid.
@return string|array
Get the contents .