| 1 |
<?php namespace TierPricingTable\Admin\ProductManagers; |
| 2 |
|
| 3 |
use Premmerce\SDK\V2\FileManager\FileManager; |
| 4 |
use TierPricingTable\Freemius; |
| 5 |
use TierPricingTable\Settings\Settings; |
| 6 |
|
| 7 |
/** |
| 8 |
* Class ProductManagerAbstract |
| 9 |
* |
| 10 |
* @package TierPricingTable\Admin\ProductManagers |
| 11 |
*/ |
| 12 |
abstract class ProductManagerAbstract { |
| 13 |
|
| 14 |
/** |
| 15 |
* @var FileManager |
| 16 |
*/ |
| 17 |
protected $fileManager; |
| 18 |
|
| 19 |
/** |
| 20 |
* @var Settings |
| 21 |
*/ |
| 22 |
protected $settings; |
| 23 |
|
| 24 |
/** |
| 25 |
* @var Freemius |
| 26 |
*/ |
| 27 |
protected $licence; |
| 28 |
|
| 29 |
/** |
| 30 |
* Product Manager constructor. |
| 31 |
* |
| 32 |
* Register menu items and handlers |
| 33 |
* |
| 34 |
* @param FileManager $fileManager |
| 35 |
* @param Settings $settings |
| 36 |
* @param Freemius $licence |
| 37 |
*/ |
| 38 |
public function __construct( FileManager $fileManager, Settings $settings, Freemius $licence ) { |
| 39 |
$this->fileManager = $fileManager; |
| 40 |
$this->settings = $settings; |
| 41 |
$this->licence = $licence; |
| 42 |
|
| 43 |
$this->hooks(); |
| 44 |
} |
| 45 |
|
| 46 |
/** |
| 47 |
* Register manager hooks |
| 48 |
*/ |
| 49 |
protected abstract function hooks(); |
| 50 |
} |