original_string: public function setAction($action)
      {
          if (!in_array($action, $this->acceptedValues)) {
              $acceptedValuesString = implode(', ', $this->acceptedValues);
              throw new \Parable\ORM\Exception("Invalid action set, only {$acceptedValuesString} are allowed.");
          }
          $this->action = $action;
          return $this;
      }
code: public function setAction($action)
      {
          if (!in_array($action, $this->acceptedValues)) {
              $acceptedValuesString = implode(', ', $this->acceptedValues);
              throw new \Parable\ORM\Exception("Invalid action set, only {$acceptedValuesString} are allowed.");
          }
          $this->action = $action;
          return $this;
      }
code_tokens: public function setAction ( $ action ) { if ( ! in_array ( $ action , $ this -> acceptedValues ) ) { $ acceptedValuesString = implode ( ', ' , $ this -> acceptedValues ) ; throw new \ Parable \ ORM \ Exception ( "Invalid action set, only {$acceptedValuesString} are allowed." ) ; } $ this -> action = $ action ; return $ this ; }
docstring: Set the type of query we're going to do.
  
  @param string $action
  
  @return $this
  @throws \Parable\ORM\Exception
docstring_tokens: Set the type of query we re going to do .