<?php

namespace PostenBringCheckout\checkout\address;

use PostenBringCheckout\admin\PostenBringImages;
use WC_Address_Provider;

/**
 * Address provider
 *
 * Class responsible for registering Posten Bring Checkout as an address provider
 *
 * @since 1.1.36
 */
class AddressProvider extends WC_Address_Provider {

	/**
	 * Provider unique identifier.
	 *
	 * @var string
	 */
	public $id = 'posten-bring-checkout-address-provider';

	/**
	 * Provider display name.
	 *
	 * @var string
	 */
	public $name = 'Posten Bring Address Provider';

	/**
	 * Optional branding HTML to display with suggestions.
	 *
	 * @var string
	 */
	public $branding_html = '';


	/**
	 * Constructor.
	 *
	 * Initializes the branding_html property.
	 *
	 * @since 1.1.36
	 */
	public function __construct() {
		$this->branding_html = '<span>' . __('Powered by', 'posten-bring-checkout') . '&nbsp;<strong>Posten Bring</strong></span><img style="margin-left: 7px; height: 18px;" src="' . esc_url(PostenBringImages::get_logo('postenbring')) . '" alt="Posten Bring logo"/>';
	}
}
