AbstractMailerModel.php 563 B

12345678910111213141516171819202122232425262728
  1. <?php
  2. declare(strict_types=1);
  3. namespace App\Service\Mailer\Model;
  4. abstract class AbstractMailerModel
  5. {
  6. protected int $senderId;
  7. protected bool $notify = true;
  8. public function setSenderId(int $accessId) : self{
  9. $this->senderId = $accessId;
  10. return $this;
  11. }
  12. public function getSenderId(): int {
  13. return $this->senderId;
  14. }
  15. public function setNotify(bool $notify) : self{
  16. $this->notify = $notify;
  17. return $this;
  18. }
  19. public function getNotify(): bool {
  20. return $this->notify;
  21. }
  22. }