improve docblocks
Dieser Commit ist enthalten in:
Ursprung
d88dee4876
Commit
c1f088985a
@ -63,7 +63,7 @@ class Configuration
|
||||
/**
|
||||
* @return string|null
|
||||
*/
|
||||
public function getSmsSenderNumber()
|
||||
public function getSmsSenderNumber(): ?string
|
||||
{
|
||||
/** @var string $number */
|
||||
$number = Registry::getConfig()->getConfigParam(self::SMS_SENDERNR);
|
||||
|
@ -15,6 +15,8 @@ declare(strict_types=1);
|
||||
|
||||
namespace D3\Linkmobility4OXID\Application\Model\Exceptions;
|
||||
|
||||
interface abortSendingExceptionInterface extends \Throwable
|
||||
use Throwable;
|
||||
|
||||
interface abortSendingExceptionInterface extends Throwable
|
||||
{
|
||||
}
|
||||
|
@ -74,7 +74,7 @@ abstract class AbstractMessage
|
||||
/**
|
||||
* @return ResponseInterface|null
|
||||
*/
|
||||
public function getResponse()
|
||||
public function getResponse(): ?ResponseInterface
|
||||
{
|
||||
return $this->response;
|
||||
}
|
||||
@ -94,7 +94,6 @@ abstract class AbstractMessage
|
||||
public function getRecipientsList(): string
|
||||
{
|
||||
$list = [];
|
||||
/** @var Recipient $recipient */
|
||||
foreach ($this->recipients as $recipient) {
|
||||
$list[] = $recipient->get();
|
||||
}
|
||||
|
@ -137,7 +137,7 @@ class Sms extends AbstractMessage
|
||||
return $response->isSuccessful();
|
||||
} catch (abortSendingExceptionInterface $e) {
|
||||
Registry::getLogger()->warning($e->getMessage());
|
||||
// Oxid does not accept throwable interface only exceptions according by definition
|
||||
// Oxid does not accept throwable interface only exceptions according to definition
|
||||
Registry::getUtilsView()->addErrorToDisplay($e->getMessage());
|
||||
} catch (GuzzleException $e) {
|
||||
Registry::getLogger()->warning($e->getMessage());
|
||||
|
@ -52,6 +52,7 @@ class OrderRecipients
|
||||
/** @var string $countryId */
|
||||
$countryId = $this->order->getFieldData(trim($countryIdFieldName));
|
||||
$country->load($countryId);
|
||||
/** @var Recipient $recipient */
|
||||
return oxNew(Recipient::class, $content, $country->getFieldData('oxisoalpha2'));
|
||||
}
|
||||
} catch (NumberParseException $e) {
|
||||
|
@ -25,7 +25,6 @@ class RequestFactory extends \D3\LinkmobilityClient\SMS\RequestFactory
|
||||
{
|
||||
$configuration = oxNew(Configuration::class);
|
||||
|
||||
/** @var SmsRequestInterface $request */
|
||||
$request = parent::getSmsRequest();
|
||||
$request->setTestMode($configuration->getTestMode())
|
||||
->setSenderAddress(
|
||||
|
Laden…
In neuem Issue referenzieren
Einen Benutzer sperren