original_string: private function _prepareValues(array $valueArrays)
  	{
  		if(count($valueArrays) === 0)
  		{
  			throw new \Exception('The value method of the statement must called before!');
  		}
  		foreach($valueArrays as $valueArray)
  		{
  			$valueString = '(';
  			foreach($valueArray as $value)
  			{
  				$valueString .= $value->getValue() . ', ';
  			}
  			$valueString = rtrim($valueString);
  			$valueString = rtrim($valueString, ',') . ')';
  			$this->values .= $valueString . ', ';
  		}
  		$this->values = rtrim($this->values);
  		$this->values = rtrim($this->values, ',');
  
  		return $this;
  	}
code: private function _prepareValues(array $valueArrays)
  	{
  		if(count($valueArrays) === 0)
  		{
  			throw new \Exception('The value method of the statement must called before!');
  		}
  		foreach($valueArrays as $valueArray)
  		{
  			$valueString = '(';
  			foreach($valueArray as $value)
  			{
  				$valueString .= $value->getValue() . ', ';
  			}
  			$valueString = rtrim($valueString);
  			$valueString = rtrim($valueString, ',') . ')';
  			$this->values .= $valueString . ', ';
  		}
  		$this->values = rtrim($this->values);
  		$this->values = rtrim($this->values, ',');
  
  		return $this;
  	}
code_tokens: private function _prepareValues ( array $ valueArrays ) { if ( count ( $ valueArrays ) === 0 ) { throw new \ Exception ( 'The value method of the statement must called before!' ) ; } foreach ( $ valueArrays as $ valueArray ) { $ valueString = '(' ; foreach ( $ valueArray as $ value ) { $ valueString .= $ value -> getValue ( ) . ', ' ; } $ valueString = rtrim ( $ valueString ) ; $ valueString = rtrim ( $ valueString , ',' ) . ')' ; $ this -> values .= $ valueString . ', ' ; } $ this -> values = rtrim ( $ this -> values ) ; $ this -> values = rtrim ( $ this -> values , ',' ) ; return $ this ; }
docstring: Validate and prepare the values property to set it to the query.
  
  @param ReferencesInterface[][] $valueArrays An array with arrays that contain ReferenceInterface objects.
  
  @return $this The same instance to concatenate methods.
  @throws \Exception When statements values method was not called.
docstring_tokens: Validate and prepare the values property to set it to the query .