| @@ 35-44 (lines=10) @@ | ||
| 32 | * @return null |
|
| 33 | * @throws HeadHunterApiException |
|
| 34 | */ |
|
| 35 | protected function getCurrentEmployerId() |
|
| 36 | { |
|
| 37 | $currentUser = $this->getCurrentUserInfo(); |
|
| 38 | ||
| 39 | if(!isset($currentUser['employer']['id'])) { |
|
| 40 | throw new HeadHunterApiException('Cannot resolve employer id'); |
|
| 41 | } |
|
| 42 | ||
| 43 | return $currentUser['employer']['id']; |
|
| 44 | } |
|
| 45 | ||
| 46 | protected function getCurrentManagerId() |
|
| 47 | { |
|
| @@ 46-55 (lines=10) @@ | ||
| 43 | return $currentUser['employer']['id']; |
|
| 44 | } |
|
| 45 | ||
| 46 | protected function getCurrentManagerId() |
|
| 47 | { |
|
| 48 | $currentUser = $this->getCurrentUserInfo(); |
|
| 49 | ||
| 50 | if(!isset($currentUser['manager']['id'])) { |
|
| 51 | throw new HeadHunterApiException('Cannot resolve manager id'); |
|
| 52 | } |
|
| 53 | ||
| 54 | return $currentUser['manager']['id']; |
|
| 55 | } |
|
| 56 | ||
| 57 | /** |
|
| 58 | * @return array |
|