thomas-kl1/php-sdk-zoho-desk

View on GitHub
src/Model/Operation/ListOperationInterface.php

Summary

Maintainability
A
0 mins
Test Coverage
<?php
/**
 * Copyright © Thomas Klein, All rights reserved.
 * See LICENSE bundled with this library for license details.
 */
declare(strict_types=1);

namespace Zoho\Desk\Model\Operation;

use Zoho\Desk\Exception\CouldNotReadException;
use Zoho\Desk\Model\DataObjectInterface;
use Zoho\Desk\Model\ListCriteriaInterface;

/**
 * @api
 */
interface ListOperationInterface
{
    /**
     * @param int[] $entityIds
     * @return DataObjectInterface[]
     * @throws CouldNotReadException
     */
    public function getByIds(array $entityIds): array;

    /**
     * @param ListCriteriaInterface $listCriteria
     * @return DataObjectInterface[]
     * @throws CouldNotReadException
     */
    public function getList(ListCriteriaInterface $listCriteria): array;
}