<?php

namespace PostenBringCheckout\admin\bring\models\booking;

defined( 'ABSPATH' ) || exit;

class PickupPoint {
	public string $id;
	public ?string $countryCode;

	public function __construct( string $id, ?string $countryCode = null ) {
		$this->id          = $id;
		$this->countryCode = $countryCode;
	}

	public function toArray(): array {
		return get_object_vars( $this );
	}
}
