/
githubmirror
/
symfony
Обзор
Документация
Войти
/
githubmirror
/
symfony
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
8.2
src/Symfony/Component/Notifier/Bridge/Firebase/Notification/IOSNotification.php
101 строка
2 KB
Nicolas Grekas
Fix return types
09 сен 2021, 15:56
09 сен 2021, 15:56
fac9055
Код
Авторство
О чём код?
<?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\Notifier\Bridge\Firebase\Notification; use Symfony\Component\Notifier\Bridge\Firebase\FirebaseOptions; final class IOSNotification extends FirebaseOptions { /** * @return $this */ public function sound(string $sound): static { $this->options['sound'] = $sound; return $this; } /** * @return $this */ public function badge(string $badge): static { $this->options['badge'] = $badge; return $this; } /** * @return $this */ public function clickAction(string $clickAction): static { $this->options['click_action'] = $clickAction; return $this; } /** * @return $this */ public function subtitle(string $subtitle): static { $this->options['subtitle'] = $subtitle; return $this; } /** * @return $this */ public function bodyLocKey(string $bodyLocKey): static { $this->options['body_loc_key'] = $bodyLocKey; return $this; } /** * @param string[] $bodyLocArgs * * @return $this */ public function bodyLocArgs(array $bodyLocArgs): static { $this->options['body_loc_args'] = $bodyLocArgs; return $this; } /** * @return $this */ public function titleLocKey(string $titleLocKey): static { $this->options['title_loc_key'] = $titleLocKey; return $this; } /** * @param string[] $titleLocArgs * * @return $this */ public function titleLocArgs(array $titleLocArgs): static { $this->options['title_loc_args'] = $titleLocArgs; return $this; } }