//Creating new head section instance, passing array with options as first argument.
//In this example, we are setting contentType to null, and indent to 8 (8 whitespaces). That means that output of every head section element will be indented by 8 whitespaces.
//You can also set every of those options by calling their set methods, for example: $headSection->setIndent(4); or $headSection->setStartingTags(false);
$headSection = new HeadSection(array('contentType'=>null, 'indent'=>8), $headSectionParams);