<?php

namespace FiloBlu\Esb\Api;

use FiloBlu\Esb\Api\Data\ObjectTypeDescriptorInterface;
use FiloBlu\Esb\Api\Data\ObjectTypeEndpointInterface;

/**
 * Interface ObjectTypeLoaderInterface
 * @package FiloBlu\Esb\Api
 */
interface ObjectTypeSaverInterface extends ObjectTypeEndpointInterface
{
    /**
     * @param ObjectTypeDescriptorInterface $objectType
     * @param $objectToSave
     * @return mixed
     */
    public function save(ObjectTypeDescriptorInterface $objectType, $objectToSave);
}
