← All changes
|
src/Packetery/Core/PickupPointProvider/BaseProvider.php
+6
-35
1.6.1
→
2.1
View file →
| @@ -1,75 +1,47 @@ | ||
| 1 | 1 | <?php |
| 2 | -/** | |
| 3 | - * Class BaseProvider | |
| 4 | - * | |
| 5 | - * @package Packetery | |
| 6 | - */ | |
| 7 | 2 | |
| 8 | 3 | declare( strict_types=1 ); |
| 9 | 4 | |
| 10 | 5 | namespace Packetery\Core\PickupPointProvider; |
| 11 | 6 | |
| 12 | -/** | |
| 13 | - * Class BaseProvider | |
| 14 | - * | |
| 15 | - * @package Packetery | |
| 16 | - */ | |
| 17 | 7 | abstract class BaseProvider { |
| 18 | 8 | |
| 19 | 9 | /** |
| 20 | - * Id. | |
| 21 | - * | |
| 22 | 10 | * @var string |
| 23 | 11 | */ |
| 24 | 12 | protected $id; |
| 13 | + | |
| 25 | 14 | /** |
| 26 | - * Country. | |
| 27 | - * | |
| 28 | 15 | * @var string |
| 29 | 16 | */ |
| 30 | 17 | protected $country; |
| 18 | + | |
| 31 | 19 | /** |
| 32 | - * Name. | |
| 33 | - * | |
| 34 | 20 | * @var string |
| 35 | 21 | */ |
| 36 | 22 | protected $name; |
| 23 | + | |
| 37 | 24 | /** |
| 38 | - * Supports COD?. | |
| 39 | - * | |
| 40 | 25 | * @var bool |
| 41 | 26 | */ |
| 42 | 27 | protected $supportsCod; |
| 28 | + | |
| 43 | 29 | /** |
| 44 | - * Supports age verification?. | |
| 45 | - * | |
| 46 | 30 | * @var bool |
| 47 | 31 | */ |
| 48 | 32 | protected $supportsAgeVerification; |
| 33 | + | |
| 49 | 34 | /** |
| 50 | - * Currency. | |
| 51 | - * | |
| 52 | 35 | * @var string |
| 53 | 36 | */ |
| 54 | 37 | protected $currency; |
| 38 | + | |
| 55 | 39 | /** |
| 56 | - * Has pickup points?. | |
| 57 | - * | |
| 58 | 40 | * @var bool |
| 59 | 41 | */ |
| 60 | 42 | protected $hasPickupPoints; |
| 61 | 43 | |
| 62 | - /** | |
| 63 | - * BaseProvider constructor. | |
| 64 | - * | |
| 65 | - * @param string $id Id. | |
| 66 | - * @param string $country Country. | |
| 67 | - * @param bool $supportsCod Supports COD. | |
| 68 | - * @param bool $supportsAgeVerification Supports age verification. | |
| 69 | - * @param string $currency Currency. | |
| 70 | - * @param bool $hasPickupPoints Is pickup points?. | |
| 71 | - */ | |
| 72 | 44 | public function __construct( |
| 73 | 45 | string $id, |
| 74 | 46 | string $country, |
| 75 | 47 | bool $supportsCod, |
| @@ -157,6 +129,5 @@ | ||
| 157 | 129 | */ |
| 158 | 130 | public function hasPickupPoints(): bool { |
| 159 | 131 | return $this->hasPickupPoints; |
| 160 | 132 | } |
| 161 | - | |
| 162 | 133 | } |