| 1 |
<?php |
| 2 |
|
| 3 |
namespace Templately\Core\Importer\Utils; |
| 4 |
|
| 5 |
use Templately\Core\Importer\LogHelper; |
| 6 |
|
| 7 |
/** |
| 8 |
* @property $imported_data [] |
| 9 |
* @property $map_post_ids [] |
| 10 |
* @property $map_term_ids [] |
| 11 |
*/ |
| 12 |
abstract class ImportHelper { |
| 13 |
use LogHelper; |
| 14 |
protected $imported_data = []; |
| 15 |
|
| 16 |
public $map_post_ids = []; |
| 17 |
|
| 18 |
public $map_term_ids = []; |
| 19 |
|
| 20 |
public function __set( $key, $value ) { |
| 21 |
if ( property_exists( $this, $key ) ) { |
| 22 |
$this->{$key} = $value; |
| 23 |
} |
| 24 |
} |
| 25 |
} |