| 1 |
<?php |
| 2 |
/** |
| 3 |
* Class CompatibilityBridge. |
| 4 |
* |
| 5 |
* @package Packetery |
| 6 |
*/ |
| 7 |
|
| 8 |
declare( strict_types=1 ); |
| 9 |
|
| 10 |
namespace Packetery\Module; |
| 11 |
|
| 12 |
use Packetery\Nette\DI\Container; |
| 13 |
|
| 14 |
/** |
| 15 |
* Class CompatibilityBridge. |
| 16 |
* |
| 17 |
* @package Packetery |
| 18 |
*/ |
| 19 |
class CompatibilityBridge { |
| 20 |
/** |
| 21 |
* Storage to use in ShippingMethod. |
| 22 |
* |
| 23 |
* @var Container Container; |
| 24 |
*/ |
| 25 |
private static $diContainer; |
| 26 |
|
| 27 |
/** |
| 28 |
* Container setter. |
| 29 |
* |
| 30 |
* @param Container $container Container. |
| 31 |
*/ |
| 32 |
public static function setContainer( Container $container ): void { |
| 33 |
self::$diContainer = $container; |
| 34 |
} |
| 35 |
|
| 36 |
/** |
| 37 |
* Container getter. |
| 38 |
* |
| 39 |
* @return Container |
| 40 |
*/ |
| 41 |
public static function getContainer(): Container { |
| 42 |
return self::$diContainer; |
| 43 |
} |
| 44 |
} |
| 45 |
|