Moodle PHP Documentation 5.1
Moodle 5.1dev (Build: 20250706) (a6b17d8f6bd)
core\test\mailpit_message_user Class Reference
Inheritance diagram for core\test\mailpit_message_user:
core\test\message_user

Public Member Functions

 get_address ()
 Get the email address of the user.
 
 get_name ()
 Get the display name of the user.
 

Static Public Member Functions

static from_recipient (stdClass $user,)
 Create a new message user object from a recipient.
 
static from_sender (stdClass $user,)
 Create a new message user object from a sender.
 

Protected Member Functions

 __construct (protected string string $name, protected string string $address)
 Constructor.
 

Detailed Description

Constructor & Destructor Documentation

◆ __construct()

core\test\mailpit_message_user::__construct ( protected string string $name,
protected string string $address )
protected

Constructor.

Parameters
string$nameThe name of the user.
string$addressThe email address of the user.
Parameters
$nameThe name of the user.
$addressThe email address of the user.

Member Function Documentation

◆ from_recipient()

static core\test\mailpit_message_user::from_recipient ( stdClass $user)
static

Create a new message user object from a recipient.

Parameters
stdClass$userThe user object.
Return values
self

◆ from_sender()

static core\test\mailpit_message_user::from_sender ( stdClass $user)
static

Create a new message user object from a sender.

Parameters
stdClass$userThe user object.
Return values
self

◆ get_address()

core\test\mailpit_message_user::get_address ( )

Get the email address of the user.

Return values
string

Implements core\test\message_user.

◆ get_name()

core\test\mailpit_message_user::get_name ( )

Get the display name of the user.

Return values
string

Implements core\test\message_user.


The documentation for this class was generated from the following file: