Skip to content

Instantly share code, notes, and snippets.

@FabianWesner
Created March 17, 2017 16:25
Show Gist options
  • Select an option

  • Save FabianWesner/5cac99ec08daee93ed57b9f56e7d68f8 to your computer and use it in GitHub Desktop.

Select an option

Save FabianWesner/5cac99ec08daee93ed57b9f56e7d68f8 to your computer and use it in GitHub Desktop.
<?php
namespace Spryker\Zed\Mail\Business\Model\Mailer;
class MailHandler implements MailHandlerInterface
{
/**
* @var \Spryker\Zed\Mail\Business\Model\Mail\Builder\MailBuilderInterface
*/
protected $mailBuilder;
/**
* @var \Spryker\Zed\Mail\Business\Model\Provider\MailProviderCollectionGetInterface
*/
protected $mailProviderCollection;
/**
* @var \Spryker\Zed\Mail\Business\Model\Mail\MailTypeCollectionGetInterface
*/
protected $mailTypeCollection;
/**
* @param \Spryker\Zed\Mail\Business\Model\Mail\Builder\MailBuilderInterface $mailBuilder
* @param \Spryker\Zed\Mail\Business\Model\Mail\MailTypeCollectionGetInterface $mailCollection
* @param \Spryker\Zed\Mail\Business\Model\Provider\MailProviderCollectionGetInterface $mailProviderCollection
*/
public function __construct(MailBuilderInterface $mailBuilder, MailTypeCollectionGetInterface $mailCollection, MailProviderCollectionGetInterface $mailProviderCollection)
{
$this->mailBuilder = $mailBuilder;
$this->mailTypeCollection = $mailCollection;
$this->mailProviderCollection = $mailProviderCollection;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment