/** * @param \MailSo\Log\Logger $oLogger * * @return \MailSo\Mail\MailClient * * @throws \MailSo\Base\Exceptions\InvalidArgumentException */ public function SetLogger($oLogger) { if (!$oLogger instanceof \MailSo\Log\Logger) { throw new \MailSo\Base\Exceptions\InvalidArgumentException(); } $this->oLogger = $oLogger; $this->oImapClient->SetLogger($this->oLogger); return $this; }