| 1 |
<?php |
| 2 |
|
| 3 |
|
| 4 |
namespace JFB_Components\Export\Traits; |
| 5 |
|
| 6 |
use JFB_Components\Export\Interfaces; |
| 7 |
|
| 8 |
// If this file is called directly, abort. |
| 9 |
if ( ! defined( 'WPINC' ) ) { |
| 10 |
die; |
| 11 |
} |
| 12 |
|
| 13 |
trait Base_Export_Controller_Trait { |
| 14 |
|
| 15 |
protected $exporter; |
| 16 |
|
| 17 |
public function set_exporter( Interfaces\Base_Export_It $exporter ) { |
| 18 |
$this->exporter = $exporter; |
| 19 |
} |
| 20 |
|
| 21 |
public function get_exporter(): Interfaces\Base_Export_It { |
| 22 |
return $this->exporter; |
| 23 |
} |
| 24 |
|
| 25 |
} |
| 26 |
|