AcMailer\Controller\Plugin\SendMailPlugin::getMailService PHP Method

getMailService() public method

public getMailService ( ) : AcMailer\Service\MailServiceInterface
return AcMailer\Service\MailServiceInterface
    public function getMailService()
    {
        return $this->mailService;
    }

Usage Example

 public function testMailServiceAwareness()
 {
     $this->assertSame($this->service, $this->plugin->getMailService());
     $anotherService = new MailServiceMock();
     $this->assertSame($this->plugin, $this->plugin->setMailService($anotherService));
     $this->assertSame($anotherService, $this->plugin->getMailService());
 }