public static function get(int $deviceId, array $customHeaders = []): BunqResponseDevice
    {
        $apiClient = new ApiClient(static::getApiContext());
        $responseRaw = $apiClient->get(
            vsprintf(
                self::ENDPOINT_URL_READ,
                [$deviceId]
            ),
            [],
            $customHeaders
        );

        return BunqResponseDevice::castFromBunqResponse(
            static::fromJson($responseRaw)
        );
    }
public static function get(int $deviceId, array $customHeaders = []): BunqResponseDevice
    {
        $apiClient = new ApiClient(static::getApiContext());
        $responseRaw = $apiClient->get(
            vsprintf(
                self::ENDPOINT_URL_READ,
                [$deviceId]
            ),
            [],
            $customHeaders
        );

        return BunqResponseDevice::castFromBunqResponse(
            static::fromJson($responseRaw)
        );
    }
public static function get ( int $ deviceId , array $ customHeaders = [ ] ) : BunqResponseDevice { $ apiClient = new ApiClient ( static :: getApiContext ( ) ) ; $ responseRaw = $ apiClient -> get ( vsprintf ( self :: ENDPOINT_URL_READ , [ $ deviceId ] ) , [ ] , $ customHeaders ) ; return BunqResponseDevice :: castFromBunqResponse ( static :: fromJson ( $ responseRaw ) ) ; }
Get a single Device. A Device is either a DevicePhone or a DeviceServer.

@param int $deviceId
@param string[] $customHeaders

@return BunqResponseDevice
Get a single Device . A Device is either a DevicePhone or a DeviceServer .