lib/eMapper/Statement/Configuration/StatementConfiguration.php
public function resultMap($result_map) {
		if (!is_string($result_map)) {
			if (is_object($result_map))
				$result_map = get_class($result_map);
			else
				throw new \InvalidArgumentException("Method 'resultMap' expects a string or valid a result map instance.");
		}
		
		return $this->merge(['map.result' => $result_map]);
	}
public function resultMap($result_map) {
		if (!is_string($result_map)) {
			if (is_object($result_map))
				$result_map = get_class($result_map);
			else
				throw new \InvalidArgumentException("Method 'resultMap' expects a string or valid a result map instance.");
		}
		
		return $this->merge(['map.result' => $result_map]);
	}
public function resultMap ( $ result_map ) { if ( ! is_string ( $ result_map ) ) { if ( is_object ( $ result_map ) ) $ result_map = get_class ( $ result_map ) ; else throw new \ InvalidArgumentException ( "Method 'resultMap' expects a string or valid a result map instance." ) ; } return $ this -> merge ( [ 'map.result' => $ result_map ] ) ; }
Sets the result map class to apply to obtained result
@param mixed $result_map
@throws \InvalidArgumentException
@return \eMapper\Statement\Configuration\StatementConfiguration
Sets the result map class to apply to obtained result