AlreadySubscribedException.php 330 B

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