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;
|
2020-03-10 00:04:17 +08:00
|
|
|
|
2013-12-23 08:06:48 +08:00
|
|
|
/**
|
|
|
|
* @var \MailSo\Log\Logger
|
|
|
|
*/
|
|
|
|
protected $oLogger = null;
|
2013-12-03 08:08:42 +08:00
|
|
|
|
2020-03-10 00:04:17 +08:00
|
|
|
public function IsActive() : bool
|
2013-12-03 08:08:42 +08:00
|
|
|
{
|
|
|
|
return false;
|
|
|
|
}
|
|
|
|
|
2020-03-10 00:04:17 +08:00
|
|
|
public function SetAccount(\RainLoop\Model\Account $oAccount)
|
2013-12-03 08:08:42 +08:00
|
|
|
{
|
|
|
|
$this->oAccount = $oAccount;
|
|
|
|
}
|
2013-12-23 08:06:48 +08:00
|
|
|
|
2020-03-10 00:04:17 +08:00
|
|
|
public function SetLogger(?\MailSo\Log\Logger $oLogger)
|
2013-12-23 08:06:48 +08:00
|
|
|
{
|
2020-03-10 00:04:17 +08:00
|
|
|
$this->oLogger = $oLogger;
|
2013-12-23 08:06:48 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @return \MailSo\Log\Logger|null
|
|
|
|
*/
|
|
|
|
public function Logger()
|
|
|
|
{
|
|
|
|
return $this->oLogger;
|
|
|
|
}
|
2013-12-03 08:08:42 +08:00
|
|
|
}
|