PHP Class Jyxo\Mail\Email\Body

Author: Jaroslav HanslĂ­k
Inheritance: extends Jyxo\Spl\Object
Datei anzeigen Open project: jyxo/php

Public Methods

Method Description
__construct ( string $main, string $alternative = '' ) Creates email body.
getAlternative ( ) : string Returns alternative body contents.
getMain ( ) : string Returns main body contents.
isHtml ( ) : boolean Returns if the contents is in HTML format.
setAlternative ( string $alternative ) : self Sets alternative body contents.
setMain ( string $main ) : self Sets main body contents.

Method Details

__construct() public method

Creates email body.
public __construct ( string $main, string $alternative = '' )
$main string Main contents
$alternative string Alternative contents

getAlternative() public method

Returns alternative body contents.
public getAlternative ( ) : string
return string

getMain() public method

Returns main body contents.
public getMain ( ) : string
return string

isHtml() public method

Returns if the contents is in HTML format.
public isHtml ( ) : boolean
return boolean

setAlternative() public method

Sets alternative body contents.
public setAlternative ( string $alternative ) : self
$alternative string Contents
return self

setMain() public method

Sets main body contents.
public setMain ( string $main ) : self
$main string Contents
return self