Cart\Cart::restoreCheckContentsType PHP Method

restoreCheckContentsType() private method

Check the contents of the data to be restored is of the correct type.
private restoreCheckContentsType ( array $data )
$data array
    private function restoreCheckContentsType(array $data)
    {
        if (!is_string($data['id']) || !is_array($data['items'])) {
            throw new CartRestoreException('Cart ID not a string or cart items not an array.');
        }
    }