public static function setLoginCredentials($arrUserInfo) { $objUserDetails = new UserDetails(); $objUserDetails->setPassword($arrUserInfo['password']); $objUserDetails->setEmail($arrUserInfo['email']); return $objUserDetails; }