| @@ 22-29 (lines=8) @@ | ||
| 19 | return isset($this->accounts[$accountId]); |
|
| 20 | } |
|
| 21 | ||
| 22 | public function isEqualPassword($accountId, $password) |
|
| 23 | { |
|
| 24 | if ($this->isExistAccountId($accountId) === false) { |
|
| 25 | return false; |
|
| 26 | } |
|
| 27 | ||
| 28 | return $this->accounts[$accountId]['password'] === $password; |
|
| 29 | } |
|
| 30 | ||
| 31 | /** |
|
| 32 | * @param string $accountId |
|
| @@ 51-58 (lines=8) @@ | ||
| 48 | return $account; |
|
| 49 | } |
|
| 50 | ||
| 51 | public function getRole($accountId) |
|
| 52 | { |
|
| 53 | if ($this->isExistAccountId($accountId) === false) { |
|
| 54 | return null; |
|
| 55 | } |
|
| 56 | ||
| 57 | return $this->accounts[$accountId]['role']; |
|
| 58 | } |
|
| 59 | } |
|
| 60 | ||