Skip to content
Snippets Groups Projects
OrganizationProviderInterface.php 543 B
Newer Older
Reiter, Christoph's avatar
Reiter, Christoph committed
<?php

declare(strict_types=1);

namespace Dbp\Relay\BaseBundle\API;
Reiter, Christoph's avatar
Reiter, Christoph committed

use Dbp\Relay\BaseBundle\Entity\Organization;
use Dbp\Relay\BaseBundle\Entity\Person;
Reiter, Christoph's avatar
Reiter, Christoph committed

interface OrganizationProviderInterface
{
    public function getOrganizationById(string $identifier, string $lang): Organization;

    /**
     * @return Organization[]
     */
    public function getOrganizationsByPerson(Person $person, string $context, string $lang): array;

    /**
     * @return Organization[]
     */
    public function getOrganizations(string $lang): array;
}