original_string: protected function checkValues($value, array $allowed)
      {
          if (!in_array($value, $allowed)) {
              throw new InvalidArgumentException(sprintf(
                  'Invalid arg `%s`, use one of these: %s',
                  $value,
                  implode(', ', $allowed)
              ));
          }
      }
code: protected function checkValues($value, array $allowed)
      {
          if (!in_array($value, $allowed)) {
              throw new InvalidArgumentException(sprintf(
                  'Invalid arg `%s`, use one of these: %s',
                  $value,
                  implode(', ', $allowed)
              ));
          }
      }
code_tokens: protected function checkValues ( $ value , array $ allowed ) { if ( ! in_array ( $ value , $ allowed ) ) { throw new InvalidArgumentException ( sprintf ( 'Invalid arg `%s`, use one of these: %s' , $ value , implode ( ', ' , $ allowed ) ) ) ; } }
docstring: Convenience method to check if a value is in the list of allowed args
  
  @throws \InvalidArgumentException Thrown when a value is invalid.
  @param string $value Value to check
  @param array $allowed List of allowed values
  @return void
docstring_tokens: Convenience method to check if a value is in the list of allowed args