public function addUser($name, $userName, $email, $password)
    {
        $model = $this->getUserDefinition()->modelInstance();
        $model->setName($name);
        $model->setEmail($email);
        $model->setUsername($userName);
        $model->setPassword($password);

        $this->save($model);
    }
public function addUser($name, $userName, $email, $password)
    {
        $model = $this->getUserDefinition()->modelInstance();
        $model->setName($name);
        $model->setEmail($email);
        $model->setUsername($userName);
        $model->setPassword($password);

        $this->save($model);
    }
public function addUser ( $ name , $ userName , $ email , $ password ) { $ model = $ this -> getUserDefinition ( ) -> modelInstance ( ) ; $ model -> setName ( $ name ) ; $ model -> setEmail ( $ email ) ; $ model -> setUsername ( $ userName ) ; $ model -> setPassword ( $ password ) ; $ this -> save ( $ model ) ; }
Add new user in database

@param string $name
@param string $userName
@param string $email
@param string $password
@return void
@throws \ByJG\Serializer\Exception\InvalidArgumentException
Add new user in database