# packeta/1.5.0/src/Packetery/Core/PickupPointProvider/BaseProvider.php

Packeta, version 1.5.0. 163 lines.

- Page: https://pluginprobe.com/plugins/packeta/1.5.0/code/src/Packetery/Core/PickupPointProvider/BaseProvider.php
- Raw: https://pluginprobe.com/plugins/packeta/1.5.0/raw/src/Packetery/Core/PickupPointProvider/BaseProvider.php
- Modified: 2023-04-24T06:19:54+00:00

Line numbers below start at 1. Link to a line or a range by appending a fragment to the
page URL, for example `https://pluginprobe.com/plugins/packeta/1.5.0/code/src/Packetery/Core/PickupPointProvider/BaseProvider.php#L10-L20`.

```php
<?php
/**
 * Class BaseProvider
 *
 * @package Packetery
 */

declare( strict_types=1 );

namespace Packetery\Core\PickupPointProvider;

/**
 * Class BaseProvider
 *
 * @package Packetery
 */
abstract class BaseProvider {

	/**
	 * Id.
	 *
	 * @var string
	 */
	protected $id;
	/**
	 * Country.
	 *
	 * @var string
	 */
	protected $country;
	/**
	 * Name.
	 *
	 * @var string
	 */
	protected $name;
	/**
	 * Supports COD?.
	 *
	 * @var bool
	 */
	protected $supportsCod;
	/**
	 * Supports age verification?.
	 *
	 * @var bool
	 */
	protected $supportsAgeVerification;
	/**
	 * Currency.
	 *
	 * @var string
	 */
	protected $currency;
	/**
	 * Has pickup points?.
	 *
	 * @var bool
	 */
	protected $hasPickupPoints;

	/**
	 * BaseProvider constructor.
	 *
	 * @param string $id                      Id.
	 * @param string $country                 Country.
	 * @param bool   $supportsCod             Supports COD.
	 * @param bool   $supportsAgeVerification Supports age verification.
	 * @param string $currency                Currency.
	 * @param bool   $hasPickupPoints         Is pickup points?.
	 */
	public function __construct(
		string $id,
		string $country,
		bool $supportsCod,
		bool $supportsAgeVerification,
		string $currency,
		bool $hasPickupPoints
	) {
		$this->id                      = $id;
		$this->country                 = $country;
		$this->supportsCod             = $supportsCod;
		$this->supportsAgeVerification = $supportsAgeVerification;
		$this->currency                = $currency;
		$this->hasPickupPoints         = $hasPickupPoints;
	}

	/**
	 * Translated name setter.
	 *
	 * @param string $translatedName Translated name.
	 *
	 * @return void
	 */
	public function setTranslatedName( string $translatedName ): void {
		$this->name = $translatedName;
	}

	/**
	 * Id getter.
	 *
	 * @return string
	 */
	public function getId(): string {
		return $this->id;
	}

	/**
	 * Country getter.
	 *
	 * @return string
	 */
	public function getCountry(): string {
		return $this->country;
	}

	/**
	 * Name getter.
	 *
	 * @return string
	 */
	public function getName(): string {
		return $this->name;
	}

	/**
	 * Currency getter.
	 *
	 * @return string
	 */
	public function getCurrency(): string {
		return $this->currency;
	}

	/**
	 * COD support getter.
	 *
	 * @return bool
	 */
	public function supportsCod(): bool {
		return $this->supportsCod;
	}

	/**
	 * Age verification getter.
	 *
	 * @return bool
	 */
	public function supportsAgeVerification(): bool {
		return $this->supportsAgeVerification;
	}

	/**
	 * Has pickup points?
	 *
	 * @return bool
	 */
	public function hasPickupPoints(): bool {
		return $this->hasPickupPoints;
	}

}

```
