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