public function createUser($name, $emailAddress, $password, $isAdmin = false)
    {
        $user = new User();
        $user->setName($name);
        $user->setEmail($emailAddress);
        $user->setHash(password_hash($password, PASSWORD_DEFAULT));
        $user->setIsAdmin(($isAdmin ? 1 : 0));

        return $this->store->save($user);
    }
public function createUser($name, $emailAddress, $password, $isAdmin = false)
    {
        $user = new User();
        $user->setName($name);
        $user->setEmail($emailAddress);
        $user->setHash(password_hash($password, PASSWORD_DEFAULT));
        $user->setIsAdmin(($isAdmin ? 1 : 0));

        return $this->store->save($user);
    }
public function createUser ( $ name , $ emailAddress , $ password , $ isAdmin = false ) { $ user = new User ( ) ; $ user -> setName ( $ name ) ; $ user -> setEmail ( $ emailAddress ) ; $ user -> setHash ( password_hash ( $ password , PASSWORD_DEFAULT ) ) ; $ user -> setIsAdmin ( ( $ isAdmin ? 1 : 0 ) ) ; return $ this -> store -> save ( $ user ) ; }
Create a new user within PHPCI.
@param $name
@param $emailAddress
@param $password
@param bool $isAdmin
@return \PHPCI\Model\User
Create a new user within PHPCI .