1 | <?php |
||
34 | class PrimaryKeyUtil implements PrimaryKeyUtilInterface |
||
35 | { |
||
36 | |||
37 | /** |
||
38 | * The configuration instance. |
||
39 | * |
||
40 | * @var \TechDivision\Import\ConfigurationInterface |
||
41 | */ |
||
42 | protected $configuration; |
||
43 | |||
44 | /** |
||
45 | * The mapping for the edition to primary key member name. |
||
46 | * |
||
47 | * @var array |
||
48 | */ |
||
49 | protected $editionPrimaryKeyMemberNameMappings = array( |
||
50 | EditionNamesInterface::EE => MemberNames::ROW_ID, |
||
51 | EditionNamesInterface::CE => MemberNames::ENTITY_ID |
||
52 | ); |
||
53 | |||
54 | /** |
||
55 | * Construct a new instance. |
||
56 | * |
||
57 | * @param \TechDivision\Import\ConfigurationInterface $configuration The configuration instance |
||
58 | */ |
||
59 | public function __construct(ConfigurationInterface $configuration) |
||
63 | |||
64 | /** |
||
65 | * Returns the primary key member name for the actual Magento edition. |
||
66 | * |
||
67 | * @return string The primary key member name |
||
68 | * @throws \Exception Is thrown if the edition is not supported/available |
||
69 | */ |
||
70 | public function getPrimaryKeyMemberName() |
||
84 | } |
||
85 |