AttachmentName

Implements \AttachmentNameInterface

Class AttachmentName

Important: This value object is not going to check if the attachment file exists in the server because that would cause problems with the service usage (e.g. if an attachment file is missing an exception would halt all the email service operations).

category

System

package

Email

subpackage

ValueObjects

Methods

Constructor

__construct(string $p_name) 

Executes the validation checks for the email attachment.

Throws
\InvalidArgumentException

On invalid argument.

Arguments

$p_name

string

E-Mail attachment name.

Returns the attachment path.

__toString() : string

Response

string

Equivalent string.

Properties

Email attachment name.

name : string
var

Type(s)

string