AlreadySubscribedException.php 360 B

12345678910111213141516
  1. <?php
  2. declare(strict_types=1);
  3. class FreshRSS_AlreadySubscribed_Exception extends Minz_Exception {
  4. private string $feedName = '';
  5. public function __construct(string $url, string $feedName) {
  6. parent::__construct('Already subscribed! ' . $url, 2135);
  7. $this->feedName = $feedName;
  8. }
  9. public function feedName(): string {
  10. return $this->feedName;
  11. }
  12. }