code: public function setEndColor(Color $pValue)
      {
          // make sure parameter is a real color and not a supervisor
          $color = $pValue->getIsSupervisor() ? $pValue->getSharedComponent() : $pValue;
  
          if ($this->isSupervisor) {
              $styleArray = $this->getEndColor()->getStyleArray(['argb' => $color->getARGB()]);
              $this->getActiveSheet()->getStyle($this->getSelectedCells())->applyFromArray($styleArray);
          } else {
              $this->endColor = $color;
          }
  
          return $this;
      }
docs: Set End Color.
  
  @param Color $pValue
  
  @throws PhpSpreadsheetException
  
  @return Fill