public function mergeWith($style)
{
if ($style instanceof TStyle) {
$this->_fields = array_merge($style->_fields, $this->_fields);
if ($this->_class === null) {
$this->_class = $style->_class;
}
if ($this->_customStyle === null) {
$this->_customStyle = $style->_customStyle;
}
if ($style->_font !== null) {
$this->getFont()->mergeWith($style->_font);
}
}
}