mirror of
https://github.com/Cacti/cacti.git
synced 2026-10-25 20:48:28 +09:00
34 lines
1.5 KiB
PHP
34 lines
1.5 KiB
PHP
<?php
|
|
/*
|
|
+-------------------------------------------------------------------------+
|
|
| Copyright (C) 2004-2026 The Cacti Group |
|
|
| |
|
|
| This program is free software; you can redistribute it and/or |
|
|
| modify it under the terms of the GNU General Public License |
|
|
| as published by the Free Software Foundation; either version 2 |
|
|
| of the License, or (at your option) any later version. |
|
|
| |
|
|
| This program is distributed in the hope that it will be useful, |
|
|
| but WITHOUT ANY WARRANTY; without even the implied warranty of |
|
|
| MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
|
|
| GNU General Public License for more details. |
|
|
+-------------------------------------------------------------------------+
|
|
| Cacti: The Complete RRDtool-based Graphing Solution |
|
|
+-------------------------------------------------------------------------+
|
|
*/
|
|
|
|
use Symfony\Component\Notifier\Recipient\Recipient;
|
|
|
|
/**
|
|
* Symfony recipient with the display name used by Cacti mail delivery.
|
|
*/
|
|
final class CactiRecipient extends Recipient {
|
|
public function __construct(string $email = '', string $phone = '', private string $name = '') {
|
|
parent::__construct($email, $phone);
|
|
}
|
|
|
|
public function getName() : string {
|
|
return $this->name;
|
|
}
|
|
}
|