src/Riak/Location.php
public static function fromString($location_string)
    {
        preg_match('/^\/types\/([^\/]+)\/buckets\/([^\/]+)\/keys\/([^\/]+)$/', $location_string, $matches);

        return new self($matches[3], new Bucket($matches[2], $matches[1]));
    }
public static function fromString($location_string)
    {
        preg_match('/^\/types\/([^\/]+)\/buckets\/([^\/]+)\/keys\/([^\/]+)$/', $location_string, $matches);

        return new self($matches[3], new Bucket($matches[2], $matches[1]));
    }
public static function fromString ( $ location_string ) { preg_match ( '/^\/types\/([^\/]+)\/buckets\/([^\/]+)\/keys\/([^\/]+)$/' , $ location_string , $ matches ) ; return new self ( $ matches [ 3 ] , new Bucket ( $ matches [ 2 ] , $ matches [ 1 ] ) ) ; }
Generate an instance of the Location object using the Location header string value returned from Riak

@param $location_string

@return Location
Generate an instance of the Location object using the Location header string value returned from Riak