<?php

namespace AutoAdmin\Bundle\Content\Duplicator;

use AutoAdmin\Bundle\Content\Breadcrumbs\Model\BreadcrumbsConfigTranslationInterface;

class BreadcrumbsConfigTranslationDuplicator extends AbstractDuplicator
{
    /**
     * @return string[]
     */
    public function supportInterfaces(): array
    {
        return [
            BreadcrumbsConfigTranslationInterface::class
        ];
    }

    /**
     * @param BreadcrumbsConfigTranslationInterface $entity
     * @param BreadcrumbsConfigTranslationInterface $duplicate
     *
     * @return BreadcrumbsConfigTranslationInterface
     */
    public function duplicate(object $entity, object $duplicate): object
    {
        $duplicate->setBreadcrumbsLabel($entity->getBreadcrumbsLabel());

        return $duplicate;
    }
}
