Your IP : 216.73.216.43


Current Path : /home/rtorresani/www/vendor/magento/framework/Setup/Declaration/Schema/Diff/
Upload File :
Current File : //home/rtorresani/www/vendor/magento/framework/Setup/Declaration/Schema/Diff/DiffFactory.php

<?php
/**
 * Copyright © Magento, Inc. All rights reserved.
 * See COPYING.txt for license details.
 */

namespace Magento\Framework\Setup\Declaration\Schema\Diff;

use Magento\Framework\ObjectManagerInterface;

/**
 * @api
 * @see DiffInterface
 */
class DiffFactory
{
    /**
     * @var ObjectManagerInterface
     */
    private $objectManager;

    /**
     * ChangeRegistryFactory constructor.
     *
     * @param ObjectManagerInterface $objectManager
     */
    public function __construct(ObjectManagerInterface $objectManager)
    {
        $this->objectManager = $objectManager;
    }

    /**
     * Create Diff object.
     *
     * @param array $data
     * @return Diff
     */
    public function create(array $data)
    {
        return $this->objectManager->create(Diff::class, $data);
    }
}