/** * @param string $user_name * @param string $first_name * @param string $last_name * @param string $email * @param string $skype * @param string $phone_work * @param string $phone_mobile * @param bool $skip_first_login * * @return User */ public function create($user_name, $first_name, $last_name, $email = '', $skype = '', $phone_work = '', $phone_mobile = '', $skip_first_login = false) { $user = new User($this->service, '', $user_name, $first_name, $last_name, '', $email, 'Learner', false, true, $skype, $phone_work, $phone_mobile, new \DateTime(), '', $skip_first_login); $req_xml = $user->toXml(); $rep_xml = $this->service->post('/users', $req_xml); return User::FromXml($this->service, $rep_xml); }