1 | <?php |
||
30 | class MailAccountMapper extends Mapper { |
||
31 | |||
32 | /** |
||
33 | * @param IDb $db |
||
34 | */ |
||
35 | 2 | public function __construct(IDb $db) { |
|
38 | |||
39 | /** Finds an Mail Account by id |
||
40 | * |
||
41 | * @param int $userId |
||
42 | * @param int $accountId |
||
43 | * @return MailAccount |
||
44 | */ |
||
45 | public function find($userId, $accountId) { |
||
51 | |||
52 | /** |
||
53 | * Finds all Mail Accounts by user id existing for this user |
||
54 | * @param string $userId the id of the user that we want to find |
||
55 | * @param $userId |
||
56 | * @return MailAccount[] |
||
57 | */ |
||
58 | public function findByUserId($userId) { |
||
64 | |||
65 | /** |
||
66 | * Saves an User Account into the database |
||
67 | * @param MailAccount $account |
||
68 | * @return MailAccount |
||
69 | */ |
||
70 | 1 | public function save(MailAccount $account) { |
|
78 | |||
79 | } |
||
80 |