code: public function setUpdateAction($updateAction)
      {
          $updateAction = strtoupper($updateAction);
          if (!in_array($updateAction, $this->getAvailableActions())) {
              throw new \InvalidArgumentException(sprintf('Action %s does not exist.', $updateAction));
          }
          $this->updateAction = $updateAction;
      }
docs: Sets an update action.
  
  @param string $updateAction Update action.
  
  @throws InvalidArgumentException If the provided argument is not of action type.
  
  @return void