src/Genesis/API/Request.php
protected function transform($method, $args, $prefix = 'transform')
    {
        $method = $prefix . CommonUtils::snakeCaseToCamelCase($method);

        if (method_exists($this, $method)) {
            $result = call_user_func_array([$this, $method], $args);

            if ($result) {
                return $result;
            }
        }

        return reset($args);
    }
protected function transform($method, $args, $prefix = 'transform')
    {
        $method = $prefix . CommonUtils::snakeCaseToCamelCase($method);

        if (method_exists($this, $method)) {
            $result = call_user_func_array([$this, $method], $args);

            if ($result) {
                return $result;
            }
        }

        return reset($args);
    }
protected function transform ( $ method , $ args , $ prefix = 'transform' ) { $ method = $ prefix . CommonUtils :: snakeCaseToCamelCase ( $ method ) ; if ( method_exists ( $ this , $ method ) ) { $ result = call_user_func_array ( [ $ this , $ method ] , $ args ) ; if ( $ result ) { return $ result ; } } return reset ( $ args ) ; }
Perform a field transformation
and return the result

@param string $method
@param array  $args
@param string $prefix

@return mixed
Perform a field transformation and return the result