original_string: public function isOneOf(array $allowedValues, bool $strict = false): bool
      {
          if (!is_array($this->value)) {
              return in_array($this->value, $allowedValues, $strict);
          }
  
          foreach ($this->value as $value) {
              if (!in_array($value, $allowedValues, $strict)) {
                  return false;
              }
          }
  
          return true;
      }
code: public function isOneOf(array $allowedValues, bool $strict = false): bool
      {
          if (!is_array($this->value)) {
              return in_array($this->value, $allowedValues, $strict);
          }
  
          foreach ($this->value as $value) {
              if (!in_array($value, $allowedValues, $strict)) {
                  return false;
              }
          }
  
          return true;
      }
code_tokens: public function isOneOf ( array $ allowedValues , bool $ strict = false ) : bool { if ( ! is_array ( $ this -> value ) ) { return in_array ( $ this -> value , $ allowedValues , $ strict ) ; } foreach ( $ this -> value as $ value ) { if ( ! in_array ( $ value , $ allowedValues , $ strict ) ) { return false ; } } return true ; }
docstring: checks that value is one of the allowed values
  
  @param   array  $allowedValues
  @param   bool   $strict         optional  whether type must match as well
  @return  bool
docstring_tokens: checks that value is one of the allowed values