phpDocumentor

AttachmentPath
in package
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).

Tags
category

System

subpackage

ValueObjects

Interfaces, Classes and Traits

AttachmentPathInterface
Interface AttachmentPathInterface

Table of Contents

$path  : string
Email attachment path.
__construct()  : mixed
Constructor
__toString()  : string
Returns attachment path.

Properties

Methods

__construct()

Constructor

public __construct(string $p_path) : mixed

Executes the validation checks for the email attachment.

Parameters
$p_path : string

E-Mail attachment path.

Tags
throws
InvalidArgumentException

If the provided argument is not a string or empty.

Return values
mixed

__toString()

Returns attachment path.

public __toString() : string
Return values
string

Equivalent string.

Search results