Spamworldpro Mini Shell
Spamworldpro


Server : Apache
System : Linux server2.corals.io 4.18.0-348.2.1.el8_5.x86_64 #1 SMP Mon Nov 15 09:17:08 EST 2021 x86_64
User : corals ( 1002)
PHP Version : 7.4.33
Disable Function : exec,passthru,shell_exec,system
Directory :  /home/corals/old/vendor/mageworx/module-seobase/Api/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Current File : /home/corals/old/vendor/mageworx/module-seobase/Api/CustomCanonicalRepositoryInterface.php
<?php
/**
 * Copyright © 2018 MageWorx. All rights reserved.
 * See LICENSE.txt for license details.
 */

namespace MageWorx\SeoBase\Api;

use MageWorx\SeoBase\Api\Data\CustomCanonicalInterface;
use Magento\Framework\Exception\NoSuchEntityException;
use Magento\Framework\Exception\CouldNotSaveException;
use Magento\Framework\Exception\CouldNotDeleteException;
use Magento\Framework\Exception\LocalizedException;

/**
 * @api
 */
interface CustomCanonicalRepositoryInterface
{
    /**
     * Save Custom Canonical
     *
     * @param CustomCanonicalInterface $customCanonical
     * @return CustomCanonicalInterface
     * @throws CouldNotSaveException
     */
    public function save(CustomCanonicalInterface $customCanonical);

    /**
     * Retrieve Custom Canonical by ID
     *
     * @param int $customCanonicalId
     * @return CustomCanonicalInterface
     * @throws NoSuchEntityException
     */
    public function getById($customCanonicalId);

    /**
     * @param string $entityType
     * @param int $entityId
     * @param int $storeId
     * @param bool $forSpecificStoreId
     * @return CustomCanonicalInterface|null
     * @throws NoSuchEntityException
     */
    public function getBySourceEntityData($entityType, $entityId, $storeId, $forSpecificStoreId = true);

    /**
     * Get empty Custom Canonical
     *
     * @return CustomCanonicalInterface
     */
    public function getEmptyEntity();

    /**
     * Delete Custom Canonical
     *
     * @param CustomCanonicalInterface $customCanonical
     * @return bool true on success
     * @throws CouldNotDeleteException
     */
    public function delete(CustomCanonicalInterface $customCanonical);

    /**
     * Delete Custom Canonical by ID
     *
     * @param int $customCanonicalId
     * @return bool true on success
     * @throws CouldNotDeleteException
     * @throws NoSuchEntityException
     */
    public function deleteById($customCanonicalId);

    /**
     * Cleanup Custom Canonicals after Entity delete
     *
     * @param string $entityType
     * @param int $entityId
     * @return void
     */
    public function deleteCustomCanonicalsByEntity($entityType, $entityId);

    /**
     * @param CustomCanonicalInterface $customCanonical
     * @param int $currentStoreId
     * @param int|null $canonicalStoreId
     * @param bool $isGraphQl
     * @return string|null
     */
    public function getCustomCanonicalUrl($customCanonical, $currentStoreId, &$canonicalStoreId = null, $isGraphQl = false);
}

Spamworldpro Mini