Skip to content
Snippets Groups Projects
Select Git revision
  • 79b98a98bb8a642260a59fdff3cc77c113bcd9ba
  • main default protected
  • ci-updates
  • v0.2.4
  • v0.2.3
  • v0.2.2
  • v0.2.1
  • v0.2.0
  • v0.1.10
  • v0.1.9
  • v0.1.8
  • v0.1.7
  • v0.1.6
  • v0.1.5
  • v0.1.4
  • v0.1.3
  • v0.1.2
  • v0.1.0
  • v0.1.1
19 results

OrganizationProviderInterface.php

Blame
  • user avatar
    Tobias Gross-Vogt authored
    using data provider from core; new pagination handling -> new provider interface --> BREAKING CHANGE
    ae687fd4
    History
    OrganizationProviderInterface.php 1.22 KiB
    <?php
    
    declare(strict_types=1);
    
    namespace Dbp\Relay\BaseOrganizationBundle\API;
    
    use Dbp\Relay\BaseOrganizationBundle\Entity\Organization;
    use Dbp\Relay\CoreBundle\Exception\ApiError;
    
    interface OrganizationProviderInterface
    {
        /**
         * @param array $options Available options:
         *                       * Locale::LANGUAGE_OPTION (language in ISO 639‑1 format)
         *                       * LocalData::INCLUDE_PARAMETER_NAME
         *
         * @throws ApiError
         */
        public function getOrganizationById(string $identifier, array $options = []): Organization;
    
        /**
         * @param array $options Available options:
         *                       * Locale::LANGUAGE_OPTION (language in ISO 639‑1 format)
         *                       * 'identifiers' The list of organizations to return
         *                       * Organization::SEARCH_PARAMETER_NAME (partial, case-insensitive text search on 'name' attribute)
         *                       * LocalData::INCLUDE_PARAMETER_NAME
         *                       * LocalData::QUERY_PARAMETER_NAME
         *
         * @return Organization[]
         *
         * @throws ApiError
         */
        public function getOrganizations(int $currentPageNumber, int $maxNumItemsPerPage, array $options = []): array;
    }