mirror of
https://github.com/the-djmaze/snappymail.git
synced 2025-01-10 16:58:07 +08:00
43d1794423
Small fixes
51 lines
698 B
PHP
51 lines
698 B
PHP
<?php
|
|
|
|
namespace RainLoop\Providers;
|
|
|
|
abstract class AbstractProvider
|
|
{
|
|
/**
|
|
* @var \RainLoop\Model\Account
|
|
*/
|
|
protected $oAccount;
|
|
|
|
/**
|
|
* @var \MailSo\Log\Logger
|
|
*/
|
|
protected $oLogger = null;
|
|
|
|
/**
|
|
* @return bool
|
|
*/
|
|
public function IsActive()
|
|
{
|
|
return false;
|
|
}
|
|
|
|
/**
|
|
* @param \RainLoop\Model\Account $oAccount
|
|
*/
|
|
public function SetAccount($oAccount)
|
|
{
|
|
$this->oAccount = $oAccount;
|
|
}
|
|
|
|
/**
|
|
* @param \MailSo\Log\Logger $oLogger
|
|
*/
|
|
public function SetLogger($oLogger)
|
|
{
|
|
if ($oLogger instanceof \MailSo\Log\Logger)
|
|
{
|
|
$this->oLogger = $oLogger;
|
|
}
|
|
}
|
|
|
|
/**
|
|
* @return \MailSo\Log\Logger|null
|
|
*/
|
|
public function Logger()
|
|
{
|
|
return $this->oLogger;
|
|
}
|
|
}
|