Cart\Cart::restoreCheckContents PHP Method

restoreCheckContents() private method

Check the contents of the data to be restored contains the correct data.
private restoreCheckContents ( array $data )
$data array
    private function restoreCheckContents(array $data)
    {
        if (!isset($data['id']) || !isset($data['items'])) {
            throw new CartRestoreException('Missing cart ID or cart items.');
        }
    }