2013-12-03 08:08:42 +08:00
|
|
|
<?php
|
|
|
|
|
|
|
|
namespace RainLoop\Providers;
|
|
|
|
|
|
|
|
abstract class AbstractProvider
|
|
|
|
{
|
|
|
|
/**
|
2014-11-13 06:09:14 +08:00
|
|
|
* @var \RainLoop\Model\Account
|
2013-12-03 08:08:42 +08:00
|
|
|
*/
|
|
|
|
protected $oAccount;
|
2013-12-23 08:06:48 +08:00
|
|
|
|
|
|
|
/**
|
|
|
|
* @var \MailSo\Log\Logger
|
|
|
|
*/
|
|
|
|
protected $oLogger = null;
|
2013-12-03 08:08:42 +08:00
|
|
|
|
|
|
|
/**
|
|
|
|
* @return bool
|
|
|
|
*/
|
|
|
|
public function IsActive()
|
|
|
|
{
|
|
|
|
return false;
|
|
|
|
}
|
|
|
|
|
|
|
|
/**
|
2014-11-13 06:09:14 +08:00
|
|
|
* @param \RainLoop\Model\Account $oAccount
|
2013-12-03 08:08:42 +08:00
|
|
|
*/
|
|
|
|
public function SetAccount($oAccount)
|
|
|
|
{
|
|
|
|
$this->oAccount = $oAccount;
|
|
|
|
}
|
2013-12-23 08:06:48 +08:00
|
|
|
|
|
|
|
/**
|
|
|
|
* @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;
|
|
|
|
}
|
2013-12-03 08:08:42 +08:00
|
|
|
}
|