public function set(int $userId, array $factors, array $context)
    {
        $uriAppend = 'set';

        $params = [
            'userId'  => $userId,
            'factors' => $factors,
            'context' => $context,
        ];

        $response = $this->handler->handle('POST', $params, $uriAppend);

        return $this->make($response);
    }
public function set(int $userId, array $factors, array $context)
    {
        $uriAppend = 'set';

        $params = [
            'userId'  => $userId,
            'factors' => $factors,
            'context' => $context,
        ];

        $response = $this->handler->handle('POST', $params, $uriAppend);

        return $this->make($response);
    }
public function set ( int $ userId , array $ factors , array $ context ) { $ uriAppend = 'set' ; $ params = [ 'userId' => $ userId , 'factors' => $ factors , 'context' => $ context , ] ; $ response = $ this -> handler -> handle ( 'POST' , $ params , $ uriAppend ) ; return $ this -> make ( $ response ) ; }
Set consumer factors for history and for current entity factors

@see https://spheremall.atlassian.net/wiki/spaces/MIC/pages/1272676386/Grapher+2.3.5+Release+Notes

@param int   $userId
@param array $factors
@param array $context

@return array|int|\SphereMall\MS\Entities\Entity|\SphereMall\MS\Lib\Collection
@throws \GuzzleHttp\Exception\GuzzleException
Set consumer factors for history and for current entity factors