AttachmentPath

Implements \AttachmentPathInterface

Class AttachmentPath

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_path) 

Executes the validation checks for the email attachment.

Throws
\InvalidArgumentException

If the provided argument is not a string or empty.

Arguments

$p_path

string

E-Mail attachment path.

Returns attachment path.

__toString() : string

Response

string

Equivalent string.

Properties

Email attachment path.

path : string
var

Type(s)

string