Completed
Pull Request — master (#1523)
by
unknown
08:52
created

AliasesService::findAll()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 3
Code Lines 1

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 1
Metric Value
c 1
b 0
f 1
dl 0
loc 3
rs 10
cc 1
eloc 1
nc 1
nop 2
1
<?php
2
/**
3
 * @author Tahaa Karim <[email protected]>
4
 *
5
 * ownCloud - Mail
6
 *
7
 * This code is free software: you can redistribute it and/or modify
8
 * it under the terms of the GNU Affero General Public License, version 3,
9
 * as published by the Free Software Foundation.
10
 *
11
 * This program is distributed in the hope that it will be useful,
12
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
13
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14
 * GNU Affero General Public License for more details.
15
 *
16
 * You should have received a copy of the GNU Affero General Public License, version 3,
17
 * along with this program.  If not, see <http://www.gnu.org/licenses/>
18
 *
19
 */
20
namespace OCA\Mail\Service;
21
22
use Exception;
23
use OCA\Mail\Account;
24
use OCA\Mail\Db\AliasMapper;
25
use OCP\IL10N;
26
27
class AliasesService {
28
29
	/** @var \OCA\Mail\Db\AliasMapper */
30
	private $mapper;
31
32
	/**
33
	 * @param AliasMapper $mapper
34
	 */
35
	public function __construct(AliasMapper $mapper) {
36
		$this->mapper = $mapper;
37
	}
38
39
	/**
40
	 * @param $currentUserId
41
	 * @param $accountId
42
	 */
43
	public function findAll($currentUserId, $accountId) {
0 ignored issues
show
Unused Code introduced by
The parameter $currentUserId is not used and could be removed.

This check looks from parameters that have been defined for a function or method, but which are not used in the method body.

Loading history...
Unused Code introduced by
The parameter $accountId is not used and could be removed.

This check looks from parameters that have been defined for a function or method, but which are not used in the method body.

Loading history...
44
		// fetch all aliases
45
	}
46
47
	/**
48
	 * @param $currentUserId
49
	 * @param $accountId
50
	 */
51
	public function delete($currentUserId, $accountId) {
0 ignored issues
show
Unused Code introduced by
The parameter $currentUserId is not used and could be removed.

This check looks from parameters that have been defined for a function or method, but which are not used in the method body.

Loading history...
Unused Code introduced by
The parameter $accountId is not used and could be removed.

This check looks from parameters that have been defined for a function or method, but which are not used in the method body.

Loading history...
52
		// delete an alias
53
	}
54
55
	/**
56
	 * @param $newAlias
57
	 * @return \OCA\Mail\Db\Alias
58
	 */
59
	public function save($newAlias) {
0 ignored issues
show
Unused Code introduced by
The parameter $newAlias is not used and could be removed.

This check looks from parameters that have been defined for a function or method, but which are not used in the method body.

Loading history...
60
		// new alias
61
	}
62
}
63