MailerFactoryAwareTrait

Defines the trait for a MailerFactoryInterface aware class.

since

4.4.0

package

Joomla CMS

Methods

getMailerFactory

Get the MailerFactoryInterface.

getMailerFactory() : \Joomla\CMS\Mail\MailerFactoryInterface
since

4.4.0

throws

UnexpectedValueExceptionMay be thrown if the MailerFactory has not been set.

Response

MailerFactoryInterface

setMailerFactory

Set the mailer factory to use.

setMailerFactory(\Joomla\CMS\Mail\MailerFactoryInterface mailerFactory = null) : 
since

4.4.0

Arguments

mailerFactory

MailerFactoryInterface|nullThe mailer factory to use.

Response

void

Properties

mailerFactory

MailerFactoryInterface

since

4.4.0

Type(s)

MailerFactoryInterface