getDefaultHeaders(); $headers['X-Bunq-Client-Authentication'] = $this->sessionToken->getToken(); $response = $this->sendSignedBunqGet($uri, $data, $headers); // create user objects: $light = $this->getKeyFromResponse('UserLight', $response); $company = $this->getKeyFromResponse('UserCompany', $response); $person = $this->getKeyFromResponse('UserPerson', $response); $this->userLight = new UserLight($light); $this->userCompany = new UserCompany($company); $this->userPerson = new UserPerson($person); return; } /** * @return UserCompany */ public function getUserCompany(): UserCompany { return $this->userCompany; } /** * @return UserLight */ public function getUserLight(): UserLight { return $this->userLight; } /** * @return UserPerson */ public function getUserPerson(): UserPerson { return $this->userPerson; } /** * @param SessionToken $sessionToken */ public function setSessionToken(SessionToken $sessionToken) { $this->sessionToken = $sessionToken; } }