mirror of
https://github.com/FreshRSS/FreshRSS.git
synced 2026-01-23 04:38:01 -05:00
* PHPStan level 6 for all PDO and Exception classes Contributes to https://github.com/FreshRSS/FreshRSS/issues/4112 * Fix type * Now also our remaining own librairies * Motivation for a few more files * A few more DAO classes * Last interface
17 lines
343 B
PHP
17 lines
343 B
PHP
<?php
|
|
|
|
class FreshRSS_AlreadySubscribed_Exception extends Exception {
|
|
|
|
/** @var string */
|
|
private $feedName = '';
|
|
|
|
public function __construct(string $url, string $feedName) {
|
|
parent::__construct('Already subscribed! ' . $url, 2135);
|
|
$this->feedName = $feedName;
|
|
}
|
|
|
|
public function feedName(): string {
|
|
return $this->feedName;
|
|
}
|
|
}
|