# TemplateContract

abstract class TemplateContract

## Properties

protected | $contents |  |
protected | $mail |  |
protected | $minify |  |

## Methods

bool
isLocal()

Host check

void
setMinify(bool $status)

Minify html template

void
generateCoverUrl(string $filename)

Book cover generator

object
render()

Rendering processs

value
asAltBody()

Generate email body without html tag

string
__toString()

Convert object into string

## Details

###
at line 24
`bool isLocal()`

Host check

#### Return Value

bool |

###
at line 45
`void setMinify(bool $status)`

Minify html template

#### Parameters

bool | $status |

#### Return Value

void |

###
at line 59
`void generateCoverUrl(string $filename)`

Book cover generator

https is required to make our resource is secure at browser (CSP issue)

#### Parameters

string | $filename |

#### Return Value

void |

###
at line 73
`abstract object render()`

Rendering processs

#### Return Value

object |

###
at line 80
`value asAltBody()`

Generate email body without html tag

#### Return Value

value |

###
at line 92
`string __toString()`

Convert object into string

#### Return Value

string |