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/cartforge.co/app/code/Amasty/Label/Api/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Current File : /home/corals/cartforge.co/app/code/Amasty/Label/Api/LabelRepositoryInterface.php
<?php
/**
 * @author Amasty Team
 * @copyright Copyright (c) Amasty (https://www.amasty.com)
 * @package Product Labels for Magento 2
 */

namespace Amasty\Label\Api;

use Amasty\Label\Api\Data\LabelInterface;
use Amasty\Label\Model\ResourceModel\Label\Collection;

/**
 * @api
 */
interface LabelRepositoryInterface
{
    /**
     * Save
     *
     * @param \Amasty\Label\Api\Data\LabelInterface $label
     * @return \Amasty\Label\Api\Data\LabelInterface
     */
    public function save(\Amasty\Label\Api\Data\LabelInterface $label): \Amasty\Label\Api\Data\LabelInterface;

    /**
     * Get by id
     *
     * @param int $id
     * @param int $mode
     * @return \Amasty\Label\Api\Data\LabelInterface
     * @throws \Magento\Framework\Exception\NoSuchEntityException
     */
    public function getById(int $id, int $mode = Collection::MODE_PDP);

    /**
     * Delete
     *
     * @param \Amasty\Label\Api\Data\LabelInterface $label
     * @return bool true on success
     * @throws \Magento\Framework\Exception\CouldNotDeleteException
     */
    public function delete(\Amasty\Label\Api\Data\LabelInterface $label): bool;

    /**
     * Delete by id
     *
     * @param int $id
     * @return bool true on success
     * @throws \Magento\Framework\Exception\CouldNotDeleteException
     */
    public function deleteById(int $id): bool;

    /**
     * Lists
     *
     * @param \Magento\Framework\Api\SearchCriteriaInterface $searchCriteria
     * @return \Magento\Framework\Api\SearchResultsInterface
     * @throws \Magento\Framework\Exception\NoSuchEntityException
     */
    public function getList(\Magento\Framework\Api\SearchCriteriaInterface $searchCriteria);

    /**
     * @param int $id
     *
     * @return void
     */
    public function duplicateLabel(int $id): void;

    /**
     * Lists
     *
     * @param int $mode
     * @return \Amasty\Label\Api\Data\LabelInterface[] Array of items.
     * @throws \Magento\Framework\Exception\NoSuchEntityException
     */
    public function getAll(int $mode = Collection::MODE_PDP): array;

    /**
     * @return \Amasty\Label\Api\Data\LabelInterface
     */
    public function getModelLabel(): \Amasty\Label\Api\Data\LabelInterface;
}

Spamworldpro Mini