diff --git a/src/App/Service/KoinService.php b/src/App/Service/KoinService.php index 9f754f9..e9cb0a0 100644 --- a/src/App/Service/KoinService.php +++ b/src/App/Service/KoinService.php @@ -6,6 +6,8 @@ namespace App\Service; use App\Entity\Sms; use Doctrine\ORM\EntityManager; +use Doctrine\ORM\OptimisticLockException; +use Doctrine\ORM\ORMException; use GuzzleHttp\Client; use Psr\Http\Message\ResponseInterface; use Zend\EventManager\Event; @@ -63,8 +65,8 @@ class KoinService /** * @param Event $event - * @throws \Doctrine\ORM\ORMException - * @throws \Doctrine\ORM\OptimisticLockException + * @throws ORMException + * @throws OptimisticLockException */ public function onReceiveSmsListener(Event $event) { @@ -74,8 +76,8 @@ class KoinService /** * @param Sms $sms * @return int - * @throws \Doctrine\ORM\ORMException - * @throws \Doctrine\ORM\OptimisticLockException + * @throws ORMException + * @throws OptimisticLockException */ public function onReceiveSms(Sms $sms) { @@ -367,7 +369,7 @@ class KoinService /** * @param string $user * @param string $pass - * @return \Psr\Http\Message\ResponseInterface + * @return ResponseInterface */ private function login(string $user, string $pass): ResponseInterface {