<commit_before><?php namespace Cartalyst\Support;
/**
 * Part of the Support package.
 *
 * NOTICE OF LICENSE
 *
 * Licensed under the Cartalyst PSL License.
 *
 * This source file is subject to the Cartalyst PSL License that is
 * bundled with this package in the license.txt file.
 *
 * @package    Support
 * @version    1.0.0
 * @author     Cartalyst LLC
 * @license    Cartalyst PSL
 * @copyright  (c) 2011-2014, Cartalyst LLC
 * @link       http://cartalyst.com
 */

use Illuminate\Config\Repository as IlluminateConfig;
use Illuminate\Mail\Mailer as IlluminateMailer;

class Mailer {

	/**
	 * The email subject.
	 *
	 * @var string
	 */
	protected $subject = null;

	/**
	 * The email from address.
	 *
	 * @var array
	 */
	protected $from = [];

	/**
	 * The email recipients.
	 *
	 * @var array
	 */
	protected $recipients = [];

	/**
	 * The email view.
	 *
	 * @var string
	 */
	protected $view;

	/**
	 * The email view data.
	 *
	 * @var array
	 */
	protected $data = [];

	/**
	 * The email attachments.
	 *
	 * @var array
	 */
	protected $attachments = [];

	/**
	 * The email data attachments.
	 *
	 * @var array
	 */
	protected $dataAttachments = [];

	/**
	 * The Illuminate mailer instance.
	 *
	 * @var \Illuminate\Mail\Mailer
	 */
	protected $mailer;

	/**
	 * The Illuminate config repository instance.
	 *
	 * @var \Illuminate\Config\Repository
	 */
	protected $config;

	/**
	 * Constructor.
	 *
	 * @param  \Illuminate\Mail\Mailer  $mailer
	 * @param  \Illuminate\Config\Repository  $config
	 * @return void
	 */
	public function __construct(IlluminateMailer $mailer, IlluminateConfig $config)
	{
		$this->mailer = $mailer;

		$this->config = $config;
	}

	/**
	 * Returns the from address.<commit_msg>added get & set methods to set the illuminate mailer and config repository<commit_after><?php namespace Cartalyst\Support;
/**
 * Part of the Support package.
 *
 * NOTICE OF LICENSE
 *
 * Licensed under the Cartalyst PSL License.
 *
 * This source file is subject to the Cartalyst PSL License that is
 * bundled with this package in the license.txt file.
 *
 * @package    Support
 * @version    1.0.0
 * @author     Cartalyst LLC
 * @license    Cartalyst PSL
 * @copyright  (c) 2011-2014, Cartalyst LLC
 * @link       http://cartalyst.com
 */

use Illuminate\Config\Repository as IlluminateConfig;
use Illuminate\Mail\Mailer as IlluminateMailer;

class Mailer {

	/**
	 * The email subject.
	 *
	 * @var string
	 */
	protected $subject = null;

	/**
	 * The email from address.
	 *
	 * @var array
	 */
	protected $from = [];

	/**
	 * The email recipients.
	 *
	 * @var array
	 */
	protected $recipients = [];

	/**
	 * The email view.
	 *
	 * @var string
	 */
	protected $view;

	/**
	 * The email view data.
	 *
	 * @var array
	 */
	protected $data = [];

	/**
	 * The email attachments.
	 *
	 * @var array
	 */
	protected $attachments = [];

	/**
	 * The email data attachments.
	 *
	 * @var array
	 */
	protected $dataAttachments = [];

	/**
	 * The Illuminate mailer instance.
	 *
	 * @var \Illuminate\Mail\Mailer
	 */
	protected $mailer;

	/**
	 * The Illuminate config repository instance.
	 *
	 * @var \Illuminate\Config\Repository
	 */
	protected $config;

	/**
	 * Constructor.
	 *
	 * @param  \Illuminate\Mail\Mailer  $mailer
	 * @param  \Illuminate\Config\Repository  $config
	 * @return void
	 */
	public function __construct(IlluminateMailer $mailer, IlluminateConfig $config)
	{
		$this->mailer = $mailer;

		$this->config = $config;
	}

	/**
	 * Returns the Illuminate mailer instance.
	 *
	 * @return \Illuminate\Mail\Mailer
	 */
	public function getMailer()
	{
		return $this->mailer;
	}

	/**
	 * Sets the Illuminate mailer instance.
	 *
	 * @param  \Illuminate\Mail\Mailer  $mailer
	 * @return $this
	 */
	public function setMailer(IlluminateMailer $mailer)
	{
		$this->mailer = $mailer;

		return $this;
	}

	/**
	 * Returns the Illuminate config repository instance.
	 *
	 * @return \Illuminate\Config\Repository
	 */
	public function getConfig()
	{
		return $this->config;
	}

	/**
	 * Sets the Illuminate config repository instance.
	 *
	 * @param  \Illuminate\Config\Repository  $config
	 * @return $this
	 */
	public function setConfig(IlluminateConfig $config)
	{
		$this->config = $config;

		return $this;
	}

	/**
	 * Returns the from address.
{'fraction_non_alphanumeric': 0.1308389495700674, 'fraction_numerical': 0.005112712061352545, 'mean_word_length': 2.7264069264069266, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 11, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '567771', 'n_tokens_mistral': 1482, 'n_tokens_neox': 1383, 'n_words': 386}