public static function get($client, $id) {
    $response = $client->get(static::$path . '/' . $id);

    $class = get_called_class();
    return new $class($client, $response->json());
  }
public static function get($client, $id) {
    $response = $client->get(static::$path . '/' . $id);

    $class = get_called_class();
    return new $class($client, $response->json());
  }
public static function get ( $ client , $ id ) { $ response = $ client -> get ( static :: $ path . '/' . $ id ) ; $ class = get_called_class ( ) ; return new $ class ( $ client , $ response -> json ( ) ) ; }
Retrieves a single resource

@param M2X $client
@param string $id
@return Resource
Retrieves a single resource