code: public function setLocked($pValue)
      {
          if ($this->isSupervisor) {
              $styleArray = $this->getStyleArray(['locked' => $pValue]);
              $this->getActiveSheet()->getStyle($this->getSelectedCells())->applyFromArray($styleArray);
          } else {
              $this->locked = $pValue;
          }
  
          return $this;
      }
docs: Set locked.
  
  @param string $pValue see self::PROTECTION_*
  
  @return Protection