- Модуль: seo
- Путь к файлу: ~/bitrix/modules/seo/lib/leadads/service.php
- Класс: Bitrix\Seo\LeadAds\Service
- Вызов: Service::getAccount
public function getAccount(string $type): ?Account { if (!array_key_exists($type, $this->accounts)) { $this->accounts[$type] = Account::create($type)->setService($this); } return $this->accounts[$type]; }