<?php

namespace App\Models;

use Illuminate\Notifications\Notifiable;

class EmailRecipient
{
    use Notifiable;

    protected $email;
    protected $name;

    public function __construct(string $email, string $name = 'Administrator')
    {
        $this->email = $email;
        $this->name = $name;
    }

    /**
     * Route notifications for the mail channel.
     */
    public function routeNotificationForMail()
    {
        return $this->email;
    }

    public function getEmail()
    {
        return $this->email;
    }

    public function getName()
    {
        return $this->name;
    }
}
