mirror of
https://gitlab.com/Chill-Projet/chill-bundles.git
synced 2025-09-28 09:34:59 +00:00
DX: apply rector rules up to php8.0
This commit is contained in:
@@ -27,28 +27,16 @@ use Psr\Log\LoggerInterface;
|
||||
|
||||
class OvhShortMessageSender implements ShortMessageSenderInterface
|
||||
{
|
||||
private Api $api;
|
||||
|
||||
private LoggerInterface $logger;
|
||||
|
||||
private PhoneNumberUtil $phoneNumberUtil;
|
||||
|
||||
private string $sender;
|
||||
|
||||
private string $serviceName;
|
||||
|
||||
public function __construct(
|
||||
Api $api, // for DI, must remains as first argument
|
||||
string $serviceName, // for di, must remains as second argument
|
||||
string $sender, // for DI, must remains as third argument
|
||||
LoggerInterface $logger,
|
||||
PhoneNumberUtil $phoneNumberUtil
|
||||
private Api $api,
|
||||
// for DI, must remains as first argument
|
||||
private string $serviceName,
|
||||
// for di, must remains as second argument
|
||||
private string $sender,
|
||||
// for DI, must remains as third argument
|
||||
private LoggerInterface $logger,
|
||||
private PhoneNumberUtil $phoneNumberUtil
|
||||
) {
|
||||
$this->api = $api;
|
||||
$this->serviceName = $serviceName;
|
||||
$this->sender = $sender;
|
||||
$this->logger = $logger;
|
||||
$this->phoneNumberUtil = $phoneNumberUtil;
|
||||
}
|
||||
|
||||
public function send(ShortMessage $shortMessage): void
|
||||
|
Reference in New Issue
Block a user