original_string: public function containsAnyOf(array $elements): bool
      {
          if (!is_scalar($this->value) || null === $this->value) {
              return false;
          }
  
          foreach ($elements as $needle) {
              if (is_bool($needle) && $this->value === $needle) {
                  return true;
              } elseif (!is_bool($needle) && ($this->value === $needle || (is_string($this->value) && false !== strpos($this->value, (string) $needle)))) {
                  return true;
              }
          }
  
          return false;
      }
code: public function containsAnyOf(array $elements): bool
      {
          if (!is_scalar($this->value) || null === $this->value) {
              return false;
          }
  
          foreach ($elements as $needle) {
              if (is_bool($needle) && $this->value === $needle) {
                  return true;
              } elseif (!is_bool($needle) && ($this->value === $needle || (is_string($this->value) && false !== strpos($this->value, (string) $needle)))) {
                  return true;
              }
          }
  
          return false;
      }
code_tokens: public function containsAnyOf ( array $ elements ) : bool { if ( ! is_scalar ( $ this -> value ) || null === $ this -> value ) { return false ; } foreach ( $ elements as $ needle ) { if ( is_bool ( $ needle ) && $ this -> value === $ needle ) { return true ; } elseif ( ! is_bool ( $ needle ) && ( $ this -> value === $ needle || ( is_string ( $ this -> value ) && false !== strpos ( $ this -> value , ( string ) $ needle ) ) ) ) { return true ; } } return false ; }
docstring: checks that value contains any of the given elements
  
  @param   array  $elements
  @return  bool
docstring_tokens: checks that value contains any of the given elements