PHP Class Jyxo\Mail\Email\Body

Author: Jaroslav Hanslík
Inheritance: extends Jyxo\Spl\Object
Afficher le fichier Open project: jyxo/php

Méthodes publiques

Méthode 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 méthode

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

getAlternative() public méthode

Returns alternative body contents.
public getAlternative ( ) : string
Résultat string

getMain() public méthode

Returns main body contents.
public getMain ( ) : string
Résultat string

isHtml() public méthode

Returns if the contents is in HTML format.
public isHtml ( ) : boolean
Résultat boolean

setAlternative() public méthode

Sets alternative body contents.
public setAlternative ( string $alternative ) : self
$alternative string Contents
Résultat self

setMain() public méthode

Sets main body contents.
public setMain ( string $main ) : self
$main string Contents
Résultat self