/
githubmirror
/
symfony
Обзор
Документация
Войти
/
githubmirror
/
symfony
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
8.2
src/Symfony/Component/Webhook/Subscriber.php
36 строк
790 B
Oskar Stark
[Webhook] Use oneline for attribute and proeprty
31 дек 2023, 00:34
31 дек 2023, 00:34
79f5bcc
Код
Авторство
О чём код?
<?php /* * This file is part of the Symfony package. * * (c) Fabien Potencier <fabien@symfony.com> * * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ namespace Symfony\Component\Webhook; use Symfony\Component\Webhook\Exception\InvalidArgumentException; class Subscriber { public function __construct( private readonly string $url, #[\SensitiveParameter] private readonly string $secret, ) { if (!$secret) { throw new InvalidArgumentException('A non-empty secret is required.'); } } public function getUrl(): string { return $this->url; } public function getSecret(): string { return $this->secret; } }