1<?php
2
3declare(strict_types=1);
4
5/**
6 * @copyright 2020 Christoph Wurst <christoph@winzerhof-wurst.at>
7 *
8 * @author 2020 Christoph Wurst <christoph@winzerhof-wurst.at>
9 *
10 * @license GNU AGPL version 3 or any later version
11 *
12 * This program is free software: you can redistribute it and/or modify
13 * it under the terms of the GNU Affero General Public License as
14 * published by the Free Software Foundation, either version 3 of the
15 * License, or (at your option) any later version.
16 *
17 * This program is distributed in the hope that it will be useful,
18 * but WITHOUT ANY WARRANTY; without even the implied warranty of
19 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
20 * GNU Affero General Public License for more details.
21 *
22 * You should have received a copy of the GNU Affero General Public License
23 * along with this program.  If not, see <http://www.gnu.org/licenses/>.
24 */
25
26namespace OCA\Mail\Events;
27
28use OCA\Mail\Account;
29use OCP\EventDispatcher\Event;
30use Psr\Log\LoggerInterface;
31
32class SynchronizationEvent extends Event {
33
34	/** @var Account */
35	private $account;
36
37	/** @var LoggerInterface */
38	private $logger;
39
40	public function __construct(Account $account,
41								LoggerInterface $logger) {
42		parent::__construct();
43
44		$this->account = $account;
45		$this->logger = $logger;
46	}
47
48	public function getAccount(): Account {
49		return $this->account;
50	}
51
52	public function getLogger(): LoggerInterface {
53		return $this->logger;
54	}
55}
56