PHP Class Bogardo\Mailgun\Service

Inheritance: implements Bogardo\Mailgun\Contracts\Mailgun
Show file Open project: bogardo/mailgun

Protected Properties

Property Type Description
$config Illuminate\Contracts\Config\Repository
$mailer Bogardo\Mailgun\Mail\Mailer
$mailgun Mailgun\Mailgun
$view Illuminate\View\Factory

Public Methods

Method Description
__construct ( Mailgun $mailgun, Illuminate\View\Factory $view, Illuminate\Contracts\Config\Repository $config ) Service constructor.
api ( ) : Mailgun
later ( integer | array $time, string $view, array $data, Closure $callback ) : Response
optInHandler ( ) : OptInHandler
raw ( string $message, Closure $callback ) : Response
send ( string $view, array $data, Closure $callback ) : Response
validator ( ) : Validator Get the Validator service.

Method Details

__construct() public method

Service constructor.
public __construct ( Mailgun $mailgun, Illuminate\View\Factory $view, Illuminate\Contracts\Config\Repository $config )
$mailgun Mailgun\Mailgun
$view Illuminate\View\Factory
$config Illuminate\Contracts\Config\Repository

api() public method

public api ( ) : Mailgun
return Mailgun\Mailgun

later() public method

public later ( integer | array $time, string $view, array $data, Closure $callback ) : Response
$time integer | array
$view string
$data array
$callback Closure
return Bogardo\Mailgun\Http\Response

optInHandler() public method

public optInHandler ( ) : OptInHandler
return Mailgun\Lists\OptInHandler

raw() public method

public raw ( string $message, Closure $callback ) : Response
$message string
$callback Closure
return Bogardo\Mailgun\Http\Response

send() public method

public send ( string $view, array $data, Closure $callback ) : Response
$view string
$data array
$callback Closure
return Bogardo\Mailgun\Http\Response

validator() public method

Get the Validator service.
public validator ( ) : Validator
return Bogardo\Mailgun\Validation\Validator

Property Details

$config protected property

protected Repository,Illuminate\Contracts\Config $config
return Illuminate\Contracts\Config\Repository

$mailer protected property

protected Mailer,Bogardo\Mailgun\Mail $mailer
return Bogardo\Mailgun\Mail\Mailer

$mailgun protected property

protected Mailgun,Mailgun $mailgun
return Mailgun\Mailgun

$view protected property

protected Factory,Illuminate\View $view
return Illuminate\View\Factory