<?php

namespace TdyCommons\Mail;

use Zend\ServiceManager\ServiceLocatorInterface;
use Zend\ServiceManager\FactoryInterface;

/**
 * Mail Factory Class.
 *
 * @author James Lloyd Atwil <james@nadows.com>
 */
class MailFactory implements FactoryInterface
{

    /**
     * Create mail service
     *
     * @param ServiceLocatorInterface $serviceLocator
     *
     * @return \PHPMailer
     */
    public function createService(ServiceLocatorInterface $serviceLocator)
    {
        $phpMailer = new \PHPMailer();
        $phpMailer->isMail();

        return $phpMailer;
    }

}