AlreadySubscribedException.php 343 B

12345678910111213141516
  1. <?php
  2. class FreshRSS_AlreadySubscribed_Exception extends Exception {
  3. /** @var string */
  4. private $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. }