Class EmailAttachment

Class EmailAttachment

Email attachment will serve as the path to the file that needs to be attached (located on the server).

EmailAttachment implements EmailAttachmentInterface

Methods summary

public __construct( AttachmentPathInterface $path = null, AttachmentNameInterface $name = null )

Constructor

public setPath( AttachmentPathInterface $path )

Sets the path of an email attachment.

public getPath( boolean $absolutePath = true ) : AttachmentPathInterface

Returns the path of an email attachment.

public setName( AttachmentNameInterface $name )

Sets the name of an email attachment.

public getName( void ) : AttachmentNameInterface

Returns the name of an email attachment.

protected _convertToRelativePath( AttachmentPathInterface $path = null ) : string

Convert a path to relative.

Properties summary

protected $path : string

E-Mail attachment path.


		
protected $name : string

E-Mail attachment name.