diff --git a/CHANGELOG.md b/CHANGELOG.md index 43c59228..91ad69e3 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -3,6 +3,8 @@ ## 2.0-beta.1 — 10.11.2022 ### Added +* add `Symfony\Component\Uid\Uuid` requirements +* add contracts for bitrix24 applications based on bitrix24-php-sdk - `Bitrix24\SDK\Application\Contracts`, now added `Bitrix24Account` ### Changed * ❗️Batch interface `BatchInterface` [renamed](https://github.com/mesilov/bitrix24-php-sdk/issues/324) to `Bitrix24\SDK\Core\Contracts\BatchOperationsInterface` diff --git a/src/Application/Contracts/Bitrix24AccountRepositoryInterface.php b/src/Application/Contracts/Bitrix24Account/Bitrix24AccountRepositoryInterface.php similarity index 72% rename from src/Application/Contracts/Bitrix24AccountRepositoryInterface.php rename to src/Application/Contracts/Bitrix24Account/Bitrix24AccountRepositoryInterface.php index 4513bc50..deeae92e 100644 --- a/src/Application/Contracts/Bitrix24AccountRepositoryInterface.php +++ b/src/Application/Contracts/Bitrix24Account/Bitrix24AccountRepositoryInterface.php @@ -2,24 +2,24 @@ declare(strict_types=1); -namespace Bitrix24\SDK\Application\Contracts; +namespace Bitrix24\SDK\Application\Contracts\Bitrix24Account; use Symfony\Component\Uid\Uuid; interface Bitrix24AccountRepositoryInterface { /** - * Сохранение аккаунта + * Save account * * @param Bitrix24AccountInterface $entity - * @param bool $flush + * @param bool $flush * * @return void */ public function saveAccount(Bitrix24AccountInterface $entity, bool $flush = false): void; /** - * Получение аккаунта по его идентификатору + * Get by account id * * @param \Symfony\Component\Uid\Uuid $id * @@ -28,24 +28,24 @@ public function saveAccount(Bitrix24AccountInterface $entity, bool $flush = fals public function getById(Uuid $id): Bitrix24AccountInterface; /** - * Физическое удаление аккаунта + * Delete account * * @param Bitrix24AccountInterface $entity - * @param bool $flush + * @param bool $flush * * @return void */ public function deleteAccount(Bitrix24AccountInterface $entity, bool $flush = false): void; /** - * Поиск аккаунта по member_id + * Find account by member_id * * @return ?Bitrix24AccountInterface Returns an array of Bitrix24Account objects */ public function findAccountByMemberId(string $memberId): ?Bitrix24AccountInterface; /** - * Получение аккаунта по member_id + * Get account by member_id * * @param string $memberId * @@ -54,7 +54,7 @@ public function findAccountByMemberId(string $memberId): ?Bitrix24AccountInterfa public function getAccountByMemberId(string $memberId): Bitrix24AccountInterface; /** - * Поиск аккаунта по идентификатору контактного лица + * Find account by contact person id - person, who installed application * * @param \Symfony\Component\Uid\Uuid $contactPersonId * @@ -63,7 +63,7 @@ public function getAccountByMemberId(string $memberId): Bitrix24AccountInterface public function findAccountByContactPersonId(Uuid $contactPersonId): ?Bitrix24AccountInterface; /** - * Поиск аккаунта по URL домена + * Find account by domain url * * @param string $domainUrl *