PHP Class MyBuilder\Cronos\Formatter\Header

Show file Open project: mybuilder/cronos

Public Methods

Method Description
__construct ( Cron $cron )
end ( ) : Cron
format ( ) : string
setContentTransferEncoding ( string $encoding ) Set the charset to use for cron output emails.
setContentType ( string $contentType ) Set the content-type to use for cron output emails.
setHome ( string $home )
setMailto ( string $email )
setPath ( string $path ) Works just like the shell PATH, but it does not inherit from your environment.
setShell ( string $shell ) Set the shell to be used when executing commands

Private Methods

Method Description
assertValidEmail ( $email )
createHeader ( $name, $value )

Method Details

__construct() public method

public __construct ( Cron $cron )
$cron Cron

end() public method

public end ( ) : Cron
return Cron

format() public method

public format ( ) : string
return string

setContentTransferEncoding() public method

Set the charset to use for cron output emails.
public setContentTransferEncoding ( string $encoding )
$encoding string

setContentType() public method

Set the content-type to use for cron output emails.
public setContentType ( string $contentType )
$contentType string

setHome() public method

public setHome ( string $home )
$home string

setMailto() public method

public setMailto ( string $email )
$email string

setPath() public method

Works just like the shell PATH, but it does not inherit from your environment.
public setPath ( string $path )
$path string

setShell() public method

Default is /bin/sh but can also be changed to /bin/php
public setShell ( string $shell )
$shell string