public function parseSection(string $source, int $offset): string
    {
        $sections = preg_split(self::SECTION_SPLITTER, $source, 2);

        if (count($sections) != 2) {
            throw new TooFewSectionsException();
        }

        return trim($sections[$offset]);
    }
public function parseSection(string $source, int $offset): string
    {
        $sections = preg_split(self::SECTION_SPLITTER, $source, 2);

        if (count($sections) != 2) {
            throw new TooFewSectionsException();
        }

        return trim($sections[$offset]);
    }
public function parseSection ( string $ source , int $ offset ) : string { $ sections = preg_split ( self :: SECTION_SPLITTER , $ source , 2 ) ; if ( count ( $ sections ) != 2 ) { throw new TooFewSectionsException ( ) ; } return trim ( $ sections [ $ offset ] ) ; }
Parse a dection of the document.

@param  string  $source
@param  int  $offset

@throws \Kurenai\Exceptions\TooFewSectionsException

@return string
Parse a dection of the document .