original_string: public function setValues($values)
      {
          if ((null !== $values) && (false === is_array($values))) {
              if (false === ($values instanceof ArrayAccess)) {
                  throw new InvalidArgumentException(
                      'The value of $values is not an array or an instance of ArrayAccess.'
                  );
              }
          }
  
          $this->values = $values;
      }
code: public function setValues($values)
      {
          if ((null !== $values) && (false === is_array($values))) {
              if (false === ($values instanceof ArrayAccess)) {
                  throw new InvalidArgumentException(
                      'The value of $values is not an array or an instance of ArrayAccess.'
                  );
              }
          }
  
          $this->values = $values;
      }
code_tokens: public function setValues ( $ values ) { if ( ( null !== $ values ) && ( false === is_array ( $ values ) ) ) { if ( false === ( $ values instanceof ArrayAccess ) ) { throw new InvalidArgumentException ( 'The value of $values is not an array or an instance of ArrayAccess.' ) ; } } $ this -> values = $ values ; }
docstring: Sets the default replacement values.
  
  @param array|object The replacement values.
  
  @throws InvalidArgumentException If the value is not supported.
docstring_tokens: Sets the default replacement values .