code: 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]));
      }
docs: Generate an instance of the Location object using the Location header string value returned from Riak
  
  @param $location_string
  
  @return Location