57        foreach ([
'minLength', 
'maxLength', 
'direction', 
'axisPosition'] as $attrKey) {
 
   58            if (
null !== $this->{$attrKey}) {
 
   59                $ret[$attrKey] = $this->{$attrKey};
 
   62        foreach ([
'border', 
'gradient', 
'negativeBarBorderColorSameAsPositive'] as $attrKey) {
 
   63            if (
null !== $this->{$attrKey}) {
 
   64                $ret[$attrKey] = $this->{$attrKey} ? 
'1' : 
'0';
 
   74        $elms = [
'borderColor', 
'negativeFillColor', 
'negativeBorderColor'];
 
   75        foreach ($elms as $elmKey) {
 
   76            if (
null !== $this->{$elmKey}) {
 
   77                $ret[$elmKey] = [
'rgb' => $this->{$elmKey}];
 
   80        foreach (array_filter($this->axisColor) as $attrKey => $axisColorAttr) {
 
   81            if (!isset(
$ret[
'axisColor'])) {
 
   82                $ret[
'axisColor'] = [];
 
   84            $ret[
'axisColor'][$attrKey] = $axisColorAttr;
 
An exception for terminatinating execution or to throw for unit testing.