Sulu\Bundle\ContactBundle\Contact\AccountManager::getById PHP Метод

getById() публичный Метод

Gets account by id.
public getById ( integer $id, string $locale ) : mixed
$id integer
$locale string
Результат mixed
    public function getById($id, $locale)
    {
        $account = $this->accountRepository->findAccountById($id);
        if (!$account) {
            throw new EntityNotFoundException($this->accountRepository->getClassName(), $id);
        }
        return $this->getApiObject($account, $locale);
    }