Your IP : 216.73.216.220


Current Path : /home/rtorresani/www/app/code/Amasty/ImportCore/Api/Source/
Upload File :
Current File : //home/rtorresani/www/app/code/Amasty/ImportCore/Api/Source/SourceDataStructureInterface.php

<?php
/**
 * @author Amasty Team
 * @copyright Copyright (c) Amasty (https://www.amasty.com)
 * @package Import Core for Magento 2 (System)
 */

namespace Amasty\ImportCore\Api\Source;

interface SourceDataStructureInterface
{
    /**
     * Get entity code
     *
     * @return string
     */
    public function getEntityCode();

    /**
     * Get input map/prefix
     *
     * @return string|null
     */
    public function getMap();

    /**
     * Get input entity field names
     *
     * @return string[]
     */
    public function getFields();

    /**
     * Returns import entity field name (before mapping) using expected input field name
     *
     * @param string $field
     * @return string|bool
     */
    public function getFieldName($field);

    /**
     * Get input entity Id field name
     *
     * @return string|null
     */
    public function getIdFieldName();

    /**
     * Get input entity parent FK field name.
     *
     * @return string|null
     */
    public function getParentIdFieldName();

    /**
     * Get sub entities structures (keyed by input map/prefix)
     *
     * @return \Amasty\ImportCore\Api\Source\SourceDataStructureInterface[]
     */
    public function getSubEntityStructures();
}