protected function setOptions($options)
{
$optionTypes = array('prettyprint' => 'boolean', 'phpSingleLine' => 'boolean', 'allowMixinOverride' => 'boolean', 'keepNullAttributes' => 'boolean', 'filterAutoLoad' => 'boolean', 'restrictedScope' => 'boolean', 'indentSize' => 'integer', 'expressionLanguage' => 'string|integer', 'indentChar' => 'string', 'customKeywords' => 'array');
if ($options instanceof Jade) {
$this->jade = $options;
$options = array();
foreach ($optionTypes as $option => $type) {
$this->{$option} = $this->jade->getOption($option);
$options[$option] = $this->{$option};
$this->setOptionType($option, $type);
}
$this->quote = $this->jade->getOption('singleQuote') ? '\'' : '"';
return $options;
}
foreach (array_intersect_key($optionTypes, $options) as $option => $type) {
$this->{$option} = $options[$option];
$this->setOptionType($option, $type);
}
$this->quote = isset($options['singleQuote']) && $options['singleQuote'] ? '\'' : '"';
return $options;
}