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