<?php

namespace AutoAdmin\Bundle\Content\Duplicator;

use AutoAdmin\Bundle\Seo\Model\SchemaOrgContentTranslationInterface;

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

    /**
     * @param SchemaOrgContentTranslationInterface $entity
     * @param SchemaOrgContentTranslationInterface $duplicate
     *
     * @return SchemaOrgContentTranslationInterface
     */
    public function duplicate(object $entity, object $duplicate): object
    {
        $duplicate->setSchemaOrgMetadata($entity->getSchemaOrgMetadata());

        return $duplicate;
    }
}
