fastbolt/entity-importer

View on GitHub
src/Factory/SetterDetector.php

Summary

Maintainability
A
0 mins
Test Coverage
<?php

/**
 * Copyright © Fastbolt Schraubengroßhandels GmbH.
 * For the full copyright and license information, please view the LICENSE
 * file that was distributed with this source code.
 */

namespace Fastbolt\EntityImporter\Factory;

use Fastbolt\EntityImporter\EntityImporterDefinition;

interface SetterDetector
{
    /**
     * @param EntityImporterDefinition $definition
     * @param object                   $entity
     * @param string                   $key
     * @param mixed                    $value
     *
     * @return string|null
     */
    public function detectSetter(EntityImporterDefinition $definition, object $entity, string $key, $value): ?string;

    /**
     * @return int
     */
    public function getPriority(): int;
}