public function get($locationId, array $params = array())
    {
        $endpoint = '/admin/locations/'.$locationId.'.json';
        $response = $this->request($endpoint, 'GET', $params);
        return $this->createObject(Location::class, $response['location']);
    }
public function get($locationId, array $params = array())
    {
        $endpoint = '/admin/locations/'.$locationId.'.json';
        $response = $this->request($endpoint, 'GET', $params);
        return $this->createObject(Location::class, $response['location']);
    }
public function get ( $ locationId , array $ params = array ( ) ) { $ endpoint = '/admin/locations/' . $ locationId . '.json' ; $ response = $ this -> request ( $ endpoint , 'GET' , $ params ) ; return $ this -> createObject ( Location :: class , $ response [ 'location' ] ) ; }
Get a single location

@link   https://help.shopify.com/api/reference/location#show
@param  integer $locationId
@param  array   $params
@return Location
Get a single location