Address.php
TLDR
The file src/Illuminate/Mail/Mailables/Address.php
defines a class Address
that represents an email address. It has two properties: address
for the recipient's email address, and name
for the recipient's name. The class provides a constructor to create a new instance of an address.
Classes
Class Address
The Address
class represents an email address. It has the following properties:
-
address
(string): The recipient's email address. -
name
(string|null): The recipient's name (optional).
The class provides a constructor method to create a new instance of an address. The constructor takes two parameters:
-
$address
(string): The recipient's email address. -
$name
(string|null): The recipient's name (optional).
<?php
namespace Illuminate\Mail\Mailables;
class Address
{
/**
* The recipient's email address.
*
* @var string
*/
public $address;
/**
* The recipient's name.
*
* @var string|null
*/
public $name;
/**
* Create a new address instance.
*
* @param string $address
* @param string|null $name
* @return void
*/
public function __construct(string $address, string $name = null)
{
$this->address = $address;
$this->name = $name;
}
}